Russ Tokuyama (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5d7aabc...
) *commented* on HHH-13322 (
https://hibernate.atlassian.net/browse/HHH-13322?atlOrigin=eyJpIjoiNjgwZG...
)
Re: Sequence increment is not correctly determined (
https://hibernate.atlassian.net/browse/HHH-13322?atlOrigin=eyJpIjoiNjgwZG...
)
We’ve also encountered this issue. Our Spring Boot app fails to start up with this error
(entity class name redacted:
Caused by: org.hibernate.MappingException: Could not instantiate id generator
[entity-name=<entity class>]
at
org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.createIdentifierGenerator(DefaultIdentifierGeneratorFactory.java:124)
~[hibernate-core-5.4.9.Final.jar:5.4.9.Final]
at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:344)
~[hibernate-core-5.4.9.Final.jar:5.4.9.Final]
hibernate-core: 5.4.9.Final
JVM: Zulu 8.42.0.23-CA-macosx
OS: Macos 10.14.6
DB: Oracle 12c
I did some debugging with IntelliJ and traced things to the getSequenceIncrementValue() in
SequenceStyleGenerator like Florian reported.
Reverting to hibernate-core to 5.3.12.Final avoided the error and our app started up and
worked with the Oracle sequence set to increment by 50 to match the default allocationSize
of 50 for the @SequenceGenerator annotation.
(
https://hibernate.atlassian.net/browse/HHH-13322#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13322#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100121- sha1:cefda43 )