Using ORM Framework Ormlite There was a time when, today, when manipulating an object, rerun the error as follows:
Must specify one of ID, Generatedid, and generatedidsequence with ID
The meaning of this is that there must be one of them, id/generatedid/generatedidsequence.
Again up and down my object's source code:
@DatabaseField (ColumnName = paymenttempuploadtable.column_id,id = True, canbenull = false,generatedid=true) private int Id; Here is the requirement for self-growth and is the key primary key so it was later changed as follows: @DatabaseField (ColumnName = paymenttempuploadtable.column_id, Canbenull = False, generatedid=true) removed the red part, and then the project was run OK. In the development process encountered a bug don't worry, do not frown, this is good. We often in the process of error, we will let ourselves some knowledge point some API has new unique insight, improve their personal troubleshooting ability. From personal summary. Welcome to open Source Communication, if there are errors please leave a message, thank you. QQ Exchange 30338970