| 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 normalMemberResolver to find the wrong entity at some point.
@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> {
from spring -
@MappedSuperclass
public abstract class AbstractPersistable<PK extends Serializable> implements Persistable<PK> {
|