● Two Important concept ○ Schema: create db and make all tables and entities ○ Entity: add properties and relations to POJO ● Daos and entiries are generated by DaoGenerator
v2 architecture DaoGenerator: generated class. Do not white code. DaoMaster: generated class. Use to get settion. DaoSession: generated class. Use to get dao. EntityDao: generated class. CRUD from database. Entity: generated entity(It has getter/setter. Editable)
v3 architecture DaoGenerator: generated class. Do not white code. DaoMaster: generated class. Use to get settion. DaoSession: generated class. Use to get dao. EntityDao: generated class. CRUD from database. Entity: your entity. Annotate this. And generate code into this.
v0.9.7(beta) architecture ● MyObjectBox: build BoxStore ● BoxStore: provide box for your object. Likes database. ● default.json: crucial ids here. Do not touch. ● Memo: your entity. Generated CRUD methods into this. ● Memo_: Property class. It is used to access member (ex. Memo_.id)
Convert to ObjectBox(from v3) http://greenrobot.org/objectbox/documentation/introduction/ > Have an app with greenDAO? DaoCompat is for you! DaoCompat is an compatibility layer that gives you an greenDAO like API for ObjectBox. http://greenrobot.org/news/objectbox-presentation-thank-you/ > For existing apps using greenDAO Easy switch to ObjectBox
Convert to ObjectBox(from v3) http://greenrobot.org/objectbox/documentation/introduction/ > Have an app with greenDAO? DaoCompat is for you! DaoCompat is an compatibility layer that gives you an greenDAO like API for ObjectBox. http://greenrobot.org/news/objectbox-presentation-thank-you/ > For existing apps using greenDAO Easy switch to ObjectBox