Android Greendao (Basic)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.