Is it possible to have same aggregate Id for multiple aggregate classes? In the JPA code I can see that aggregate is loaded by ID only and not ID+Class. So if two aggregates has ids 1,2,3… I have no idea what will be loaded?
This is the query - there is no "WHERE e.payloadType=“java.xx.ClassName”
"SELECT new org.axonframework.eventhandling.GenericDomainEventEntry(" +
"e.type, e.aggregateIdentifier, e.sequenceNumber, e.eventIdentifier, e.timeStamp, "
+ "e.payloadType, e.payloadRevision, e.payload, e.metaData) FROM "
+ domainEventEntryEntityName() + " e WHERE e.aggregateIdentifier = :id "
+ "AND e.sequenceNumber >= :seq ORDER BY e.sequenceNumber ASC"