objectbox / objectbox/objectbox-java
Is there an example on how to define and use the object model at runtime?
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- Java
- 星标
- 4.6k
- 派生
- 311
- PR 合并指标
- 30 天内没有已合并 PR
描述
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!
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先查看 objectbox-models/default.json 的模型格式,以及 issue 中描述的编译时注解路径。确定是否可以在不使用注解的情况下支持运行时实体和属性;完成的标准是提供一个有文档说明且可运行的 Android 示例,或者明确说明不支持此模式。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, java
- 领域
- databases, mobile
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100