I’m using Hibernate 6.5.2 and I have a @GeneratedValue(strategy = GenerationType.SEQUENCE)
in our base Entity class, so Hibernate generates one database sequence for each entity.
But if I tried to name the item above and use @SequenceGenerator
to change the allocationSize
then it is going to stop generating one sequence for each entity.
How could I change allocationSize
without remove the ability to generate one database sequence for each entity?