Home > Mobile >  Use greenDAO 3.0 encountered the problem of automatic generation of Dao
Use greenDAO 3.0 encountered the problem of automatic generation of Dao

Time:09-20


According to clew, whether it is the abstract class or is to realize the hasKey () method, when to run, will appear the same problem again, please help!

CodePudding user response:

Own answer, related to automatically generate code to delete, to make the project, with respect to ok, estimates may be where before operating point error, convulsions ~ ~ ~

CodePudding user response:

To solve the problem, can say to you, has been rarely. Support

CodePudding user response:

The building Lord those code is deleted

CodePudding user response:

Changing the primary key to Long hasKey () compiler error

Public Boolean hasKey (SCBean entity) {
Return the entity. GetSc_id ()!=null;
}

Error: cannot compare types: long and & lt; A null value & gt;

Excuse me why

CodePudding user response:

GreenDao is automatically generated Dao, originally, because call time all need these Dao class, you can specify the Dao to the road. Do not know what the original poster is based on the reason why he didn't want to generate
  • Related