[hibernate-issues] [JIRA] (HHH-13322) Sequence increment is not correctly determined

Russ Tokuyama (JIRA) jira at hibernate.atlassian.net
Wed Feb 26 21:28:26 EST 2020


Russ Tokuyama ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5d7aabc41e81950d2d824a15 ) *commented* on HHH-13322 ( https://hibernate.atlassian.net/browse/HHH-13322?atlOrigin=eyJpIjoiNjgwZGEwNzI5MTA3NGNmMWI1M2RiMWJlOWVjNDcwMzIiLCJwIjoiaiJ9 )

Re: Sequence increment is not correctly determined ( https://hibernate.atlassian.net/browse/HHH-13322?atlOrigin=eyJpIjoiNjgwZGEwNzI5MTA3NGNmMWI1M2RiMWJlOWVjNDcwMzIiLCJwIjoiaiJ9 )

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=eyJpIjoiNjgwZGEwNzI5MTA3NGNmMWI1M2RiMWJlOWVjNDcwMzIiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13322#add-comment?atlOrigin=eyJpIjoiNjgwZGEwNzI5MTA3NGNmMWI1M2RiMWJlOWVjNDcwMzIiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100121- sha1:cefda43 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200227/c61f79e1/attachment.html 


More information about the hibernate-issues mailing list