it looks like there might be an issue with building the mappedSuperclassByMappedSuperclassMapping map in MetadataContext.java
Everything was working like a champ in 4.3.10, I decided to upgrade to get JDK8 Date stuff.
In my code I have bunch of entities that extend by AbstractAppObject. and when AttributeFActory.getDeclarerEntityMetamodel is called for the first time I have my DiscussionMessage entity in the (MetadataContext) mappedSuperclassByMappedSuperclassMapping 3 times. this causes virtualIdentifierMemberResolver to find the wrong entity at some point. I end up with a "expecting IdClass mapping" IllegalArgumentException.
If remove my DiscussionMessage entity then I end up with the 'next' entity that has the same chain of abstract classes.
some of my code -
{code:java} @Entity(name="discussion_message") public class DiscussionMessage extends AbstractAppObject {
@Audited(auditParents={ AbstractLazyAuditable.class, AbstractPersistable.class }) @EntityListeners(AuditingEntityListener.class) @MappedSuperclass public abstract class AbstractAppObject extends AbstractLazyAuditable<User, Long> implements AppObject {
@MappedSuperclass public abstract class AbstractLazyAuditable<U, PK extends Serializable> extends AbstractPersistable<PK> implements Auditable<U, PK> { {code}
from spring - {code:java} @MappedSuperclass public abstract class AbstractPersistable<PK extends Serializable> implements Persistable<PK> { {code}
|
|