Hi,
I’m using Axon Framework v4.11.2 and encountering an issue with Hibernate. The DomainEventEntry entity has a globalIndex field with the default @GeneratedValue strategy, which resolves to ‘AUTO’. However, my current Hibernate dialect defaults to using sequences, and I would prefer to use the ‘IDENTITY’ strategy instead.
Here’s the relevant field:
@Id
@GeneratedValue
@SuppressWarnings("unused")
private long globalIndex;
Is there a way to override the generation strategy and explicitly configure it to use @GeneratedValue(strategy = GenerationType.IDENTITY)
?
Thanks,
Gijs