@BaseEntity annotation in superclass library
I am aware that according to your documentation, @BaseEntity not allowed on a superclass from a library. I was hoping this is on the dev roadmap? Please advise. Thanks!
Thanks. This is similar to multi-module support requested in #588. However, this talks about entities from dependencies. Both are currently not possible due to technical restrictions (the annotation processor can not see these classes).
Thanks. This is similar to multi-module support requested in #588. However, this talks about entities from dependencies. Both are currently not possible due to technical restrictions (the annotation processor can not see these classes).
Muti-module is a popular developing way now , some libs like arouter (https://github.com/alibaba/ARouter) can do this , deal annotation for muti module. It seems that technical restrictions can break down.
@showwiki Thanks for the link. I had a quick look at their annotation processor, but didn't see anything that might help with our use case.
-
in sub-module create router map RouteProcessor.java
-
in main-module scan all map PluginLaunch.groovy#L36 ScanUtil.groovy#L39
-
collect the scan results and insert them into the core class RegisterTransform.groovy#L119 LogisticsCenter.java#L65
Hope that ObjectBox can support Multi-modules. Thx~
@greenrobot-team
Maybe:
- Generate entity metadata on sub-modules through Annotation Processor
- On the main module through the plug-in
io.objectbox:objectbox-gradle-plugin, scan all entity metadata to generateMyBoxStore