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(AuditTableData auditTableData, Class<?> clazz, String entityName, String tableName)
RootPersistentEntity(AuditTableData auditTableData, PersistentClass persistentClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(Attribute attribute)
Add an attribute to the container.void
addJoin(Join join)
Add a secondary table join to the entity mapping.void
build(JaxbHbmHibernateMapping mapping)
DiscriminatorType
getDiscriminator()
String
getDiscriminatorValue()
Identifier
getIdentifier()
List<Join>
getJoins()
Get an unmodifiable list of joins associated with entity mapping.boolean
isJoinAware()
void
setDiscriminator(DiscriminatorType discriminator)
void
setDiscriminatorValue(String discriminatorValue)
void
setIdentifier(Identifier identifier)
void
setWhereClause(String whereClause)
-
Methods inherited from class org.hibernate.envers.boot.model.PersistentEntity
getAuditTableData, getPersistentClass
-
-
-
-
Constructor Detail
-
RootPersistentEntity
public RootPersistentEntity(AuditTableData auditTableData, PersistentClass persistentClass)
-
RootPersistentEntity
public RootPersistentEntity(AuditTableData auditTableData, Class<?> clazz, String entityName, String tableName)
-
-
Method Detail
-
isJoinAware
public boolean isJoinAware()
- Overrides:
isJoinAware
in classPersistentEntity
-
addAttribute
public void addAttribute(Attribute attribute)
Description copied from interface:AttributeContainer
Add an attribute to the container.- Specified by:
addAttribute
in 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:JoinAwarePersistentEntity
Get an unmodifiable list of joins associated with entity mapping.- Specified by:
getJoins
in interfaceJoinAwarePersistentEntity
- Returns:
- list of joins
-
addJoin
public void addJoin(Join join)
Description copied from interface:JoinAwarePersistentEntity
Add a secondary table join to the entity mapping.- Specified by:
addJoin
in interfaceJoinAwarePersistentEntity
- Parameters:
join
- the secondary table join, should never benull
-
build
public void build(JaxbHbmHibernateMapping mapping)
- Specified by:
build
in classPersistentEntity
-
-