Adding <property name="hibernate.id.optimizer.pooled.prefer_lo" value="true" /> to my persistence.xml makes Hibernate interpret the value from the sequences correctly. Not sure where this is documented. I also don't know how long this behaviour has been here (I recently upgraded from 4.3.9 to 5.1.0). Updating priority. |