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
JPA/Hibernate don't manage to insert an entity with H2 2.0.202 (was fine with 1.4.200) #3265
Comments
It's a bug of Hibernate.
You can create a feature request about support of H2 2.0 here: You can add ID BIGINT GENERATED BY DEFAULT AS IDENTITY DEFAULT ON NULL PRIMARY KEY |
For all people who struggle with the |
Issue about wrong implementation of |
I have the following table:
and the following entity:
When running the unit tests, consisting of a simple
locationRepository.save(location1);
, I get the following error:I tried removing the "NOT NULL" statement when creating the table for the "id" column but it doesn't change anything.
This is hibernate 5.6.1. I didn't report it to them yet because it used to work fine with H2 1.4.200 so I'm not sure where the problem really is.
The text was updated successfully, but these errors were encountered: