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. SupportCodePudding user response:
The building Lord those code is deletedCodePudding user response:
Changing the primary key to Long hasKey () compiler errorPublic 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