startup exception:
{code:java}Caused by: org.hibernate.MappingException: The increment size of the [books_seq] sequence is set to [50] in the entity mapping while the associated database sequence increment size is [1]. at org.hibernate.id.enhanced.SequenceStyleGenerator.configure(SequenceStyleGenerator.java:257) at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.createIdentifierGenerator(DefaultIdentifierGeneratorFactory.java:118) ... 45 common frames omitted{code}
thrown for
{code:java}@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "books_seq") @SequenceGenerator(name="books_seq", sequenceName = "books_seq", allocationSize = 50, initialValue = 1000) private Long id;{code}
I think “allocation size” is something completely different to “ sequence created with:
{code}CREATE SEQUENCE examplestack1.books_seq MINVALUE 1000 START WITH 1000{code}
content of seq table in mariadb:
"next_not_cached_value","minimum_value","maximum_value","start_value"," increment ” ","cache_size","cycle_option","cycle_count" 2000,1000,9223372036854775806,1000,1,1000,0,0
|
|