I recently derived a class from AbstractAggregateRoot and attempted to use it as a JPA persisted class using Hibernate.
Upon bootup, the following exception occurred.
Caused by: org.hibernate.MappingException: Could not determine type for: org.axonframework.domain.DomainEventStream, at table: customer, for columns: [org.hibernate.mapping.Column(uncommittedEvents)]
Hibernate is picking up the “getters” in the AbstractAggregateRoot class
and attempting to map them since they aren’t annotated with @Transient.
Is there any workaround for this issue?