Package org.hibernate.mapping
Class MappedSuperclass
java.lang.Object
org.hibernate.mapping.MappedSuperclass
Represents a @MappedSuperclass.
A @MappedSuperclass can be a superclass of an @Entity (root or not)
This class primary goal is to give a representation to @MappedSuperclass
in the metamodel in order to reflect them in the JPA 2 metamodel.
Do not use outside this use case.
A proper redesign will be evaluated in Hibernate 4
Implementation details:
properties are copies of their closest sub-persistentClass versions
-
Constructor Summary
ConstructorsConstructorDescriptionMappedSuperclass(MappedSuperclass superMappedSuperclass, PersistentClass superPersistentClass) -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the first superclass marked as @MappedSuperclass or null if: - none exists - or the first persistent superclass found is an @EntityReturns the PersistentClass of the first superclass marked as @Entity or null if none existsbooleanbooleanvoidsetDeclaredIdentifierMapper(Component identifierMapper) voidvoidsetDeclaredVersion(Property prop) voidsetMappedClass(Class mappedClass)
-
Constructor Details
-
MappedSuperclass
public MappedSuperclass(MappedSuperclass superMappedSuperclass, PersistentClass superPersistentClass)
-
-
Method Details
-
getSuperMappedSuperclass
Returns the first superclass marked as @MappedSuperclass or null if: - none exists - or the first persistent superclass found is an @Entity- Returns:
- the super MappedSuperclass
-
hasIdentifierProperty
public boolean hasIdentifierProperty() -
isVersioned
public boolean isVersioned() -
getSuperPersistentClass
Returns the PersistentClass of the first superclass marked as @Entity or null if none exists- Returns:
- the PersistentClass of the superclass
-
getDeclaredPropertyIterator
-
addDeclaredProperty
-
getMappedClass
-
setMappedClass
-
getIdentifierProperty
-
getDeclaredIdentifierProperty
-
setDeclaredIdentifierProperty
-
getVersion
-
getDeclaredVersion
-
setDeclaredVersion
-
getIdentifierMapper
-
getDeclaredIdentifierMapper
-
setDeclaredIdentifierMapper
-