objectbox / objectbox/objectbox-java

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

Open
#897 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
4.6k
Forks
311
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the objectbox-models/default.json model format and the compile-time annotation path described in the issue. Determine whether runtime entities and attributes can be supported without annotations; done would be a documented, working Android example or a clear statement that this mode is unsupported.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
databases, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.