[hibernate-dev] Entity, MappedSuperclass, and Embeddable

Gail Badner gbadner at redhat.com
Tue Apr 26 00:39:24 EDT 2011


There is a discussion about XML overriding rules in Section 12.2 of the JPA 2.0 spec.

Are the following overrides possible?
1) Can an @Entity annotation be overridden using XML <mapped-superclass> or <embeddable>?
2) Can a @Mappedsuperclass annotation be overridden using XML <entity> or <embeddable>?
3) Can a @Embeddable annotation be overridden using XML <entity> or <mapped-superclass>?

Supporting this would obviously affect the Hierarchical domain info.

If any of these overrides are valid, then we should discuss this at the Tuesday morning meeting.

Regards,
Gail



More information about the hibernate-dev mailing list