Greendao Basic use is very simple, online a large basket, recommended in the book search, then I want to say something here, imagine, these simple demo can take you to understand Greendao, but you can use these code to do the company's projects, certainly not, so I combined with their own project experience, Take you one step at a to fly, and finally shoulder the sun
Problem:
(a) After using Greendaogenerator to generate the model, you will find that the customizations (custom) in the entity class are missing and how to resolve
1, add in the Greendaogenerator.java
Schema.enablekeepsectionsbydefault ();
2, the custom code first back up, start generator, and then put the custom code in the middle, so that the next time to start generator the custom code will not be lost
Custom ingest package (import), custom fields, custom methods, respectively
Android Greendao (Basic)