Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an example on how to define and use the object model at runtime? #897

Open
florianwinterstein opened this issue Aug 13, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@florianwinterstein
Copy link

I like to build an android app using the ObjectBox. In this case the entities and attributes are not known at compile time.

Is it possible to create the data model at run time (e.g. generating the objectbox-models/default.json during runtime) and use the ObjectBox classes without any compile time annotations? I could not find any references for this mode of operation.

Thanks!

@florianwinterstein florianwinterstein added the enhancement New feature or request label Aug 13, 2020
@greenrobot
Copy link
Member

ObjectBox persistence is modeled around objects and thus classes. Tools run at build time to generate code optimized to classes. This is an important aspect of ObjectBox being as fast as it is.

While we promote this high performance concept to developers, we also look into offering flexibility. Maybe you can share a bit on your use case and how you intend to process data of unknown structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants