Package org.hibernate.envers.boot.model
Class RootPersistentEntity
java.lang.Object
org.hibernate.envers.boot.model.PersistentEntity
org.hibernate.envers.boot.model.RootPersistentEntity
- All Implemented Interfaces:
AttributeContainer,JoinAwarePersistentEntity
A persistent entity mapping that represents the root entity of an entity hierarchy.
-
Constructor Summary
ConstructorsConstructorDescriptionRootPersistentEntity(AuditTableData auditTableData, Class<?> clazz, String entityName, String tableName) RootPersistentEntity(AuditTableData auditTableData, PersistentClass persistentClass) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(Attribute attribute) Add an attribute to the container.voidAdd a secondary table join to the entity mapping.voidbuild(JaxbHbmHibernateMapping mapping) getJoins()Get an unmodifiable list of joins associated with entity mapping.booleanvoidsetDiscriminator(DiscriminatorType discriminator) voidsetDiscriminatorValue(String discriminatorValue) voidsetIdentifier(Identifier identifier) voidsetWhereClause(String whereClause) Methods inherited from class org.hibernate.envers.boot.model.PersistentEntity
getAuditTableData, getPersistentClass
-
Constructor Details
-
RootPersistentEntity
-
RootPersistentEntity
public RootPersistentEntity(AuditTableData auditTableData, Class<?> clazz, String entityName, String tableName)
-
-
Method Details
-
isJoinAware
public boolean isJoinAware()- Overrides:
isJoinAwarein classPersistentEntity
-
addAttribute
Description copied from interface:AttributeContainerAdd an attribute to the container.- Specified by:
addAttributein interfaceAttributeContainer- Parameters:
attribute- the attribute, should not benull
-
getIdentifier
-
setIdentifier
-
getDiscriminator
-
setDiscriminator
-
getDiscriminatorValue
-
setDiscriminatorValue
-
setWhereClause
-
getJoins
Description copied from interface:JoinAwarePersistentEntityGet an unmodifiable list of joins associated with entity mapping.- Specified by:
getJoinsin interfaceJoinAwarePersistentEntity- Returns:
- list of joins
-
addJoin
Description copied from interface:JoinAwarePersistentEntityAdd a secondary table join to the entity mapping.- Specified by:
addJoinin interfaceJoinAwarePersistentEntity- Parameters:
join- the secondary table join, should never benull
-
build
- Specified by:
buildin classPersistentEntity
-