-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autoincrement not work #441
Comments
Try to use
And maybe do not set an 'id' before inserting (so |
No response. Closing. -ut |
I meet the same issue, doesn't set id before inserting, use Long instead of long works. Can't use long property for id? |
@MrRoshan Yes, you can use |
I had the same problem and set type Long to ID. But now I get an error in the files which are build:
I tried to clean and rebuild the project, but it doesn't work. Do you have an idea? |
@danmuf Check that the return type for |
I fixed this problem by deleting all the @generated methods in the classes for the db. After rebuilding the project there was no error (probably a little bug concerning changing the type of a property?). |
Long works after updating Constructor/Getter & Setters. Thanks! |
i'm using Long type for autoincrement id and not inserting id but still its showing UNIQUE constraint failed , |
Hi, i set
And still get
The text was updated successfully, but these errors were encountered: