I have a class with the following definition:
@Id @SequenceGenerator(name = \"SEQ_ACE_WORKERS_QUEUE_STATS_ID\", sequenceName = \"SEQ_ACE_WORKERS_QUEUE_STATS_
Setting hibernate.id.new_generator_mappings to false in my persistence.xml was just the first part of the solution to my problem:
hibernate.id.new_generator_mappings
false
persistence.xml
To completely solve the problem I added the allocationSize to 1 in the @SequenceGenerator (which I was omitting).
allocationSize
1
@SequenceGenerator