have a base entity. I have a sequence per entity strategy. Increment size is 100. As per documentation in hibernate 6, default strategy is sequence per entity. But i couldn’t find a way to set default increment size to 100.
How i can migrate the code below to work with hibernate 6.
@Getter
@Setter
@MappedSuperclass
@Audited
public abstract class AbstractEntity {
@Id
@GeneratedValue(generator = "optimized-sequence")
@GenericGenerator(
name = "optimized-sequence",
strategy = "enhanced-sequence",
parameters = {
@Parameter(name = SequenceStyleGenerator.CONFIG_PREFER_SEQUENCE_PER_ENTITY, value = "true"),
@Parameter(name = SequenceStyleGenerator.INCREMENT_PARAM, value = "100")})
private Long id;