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
public class RootPersistentEntity extends PersistentEntity implements JoinAwarePersistentEntity
A persistent entity mapping that represents the root entity of an entity hierarchy.
-
-
Constructor Summary
Constructors Constructor Description RootPersistentEntity(org.hibernate.envers.configuration.internal.metadata.AuditTableData auditTableData, Class<?> clazz, String entityName, String tableName)RootPersistentEntity(org.hibernate.envers.configuration.internal.metadata.AuditTableData auditTableData, org.hibernate.mapping.PersistentClass persistentClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(Attribute attribute)Add an attribute to the container.voidaddJoin(Join join)Add a secondary table join to the entity mapping.voidbuild(org.hibernate.boot.jaxb.hbm.spi.JaxbHbmHibernateMapping mapping)DiscriminatorTypegetDiscriminator()StringgetDiscriminatorValue()IdentifiergetIdentifier()List<Join>getJoins()Get an unmodifiable list of joins associated with entity mapping.booleanisJoinAware()voidsetDiscriminator(DiscriminatorType discriminator)voidsetDiscriminatorValue(String discriminatorValue)voidsetIdentifier(Identifier identifier)voidsetWhereClause(String whereClause)-
Methods inherited from class org.hibernate.envers.boot.model.PersistentEntity
getAuditTableData, getPersistentClass
-
-
-
-
Method Detail
-
isJoinAware
public boolean isJoinAware()
- Overrides:
isJoinAwarein classPersistentEntity
-
addAttribute
public void addAttribute(Attribute attribute)
Description copied from interface:AttributeContainerAdd an attribute to the container.- Specified by:
addAttributein interfaceAttributeContainer- Parameters:
attribute- the attribute, should not benull
-
getIdentifier
public Identifier getIdentifier()
-
setIdentifier
public void setIdentifier(Identifier identifier)
-
getDiscriminator
public DiscriminatorType getDiscriminator()
-
setDiscriminator
public void setDiscriminator(DiscriminatorType discriminator)
-
getDiscriminatorValue
public String getDiscriminatorValue()
-
setDiscriminatorValue
public void setDiscriminatorValue(String discriminatorValue)
-
setWhereClause
public void setWhereClause(String whereClause)
-
getJoins
public List<Join> getJoins()
Description copied from interface:JoinAwarePersistentEntityGet an unmodifiable list of joins associated with entity mapping.- Specified by:
getJoinsin interfaceJoinAwarePersistentEntity- Returns:
- list of joins
-
addJoin
public void addJoin(Join join)
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
public void build(org.hibernate.boot.jaxb.hbm.spi.JaxbHbmHibernateMapping mapping)
- Specified by:
buildin classPersistentEntity
-
-