Package org.hibernate.envers.boot.model
Class DiscriminatorPersistentEntity
- java.lang.Object
-
- org.hibernate.envers.boot.model.PersistentEntity
-
- org.hibernate.envers.boot.model.SubclassPersistentEntity
-
- org.hibernate.envers.boot.model.DiscriminatorPersistentEntity
-
- All Implemented Interfaces:
AttributeContainer,JoinAwarePersistentEntity
public class DiscriminatorPersistentEntity extends SubclassPersistentEntity implements JoinAwarePersistentEntity
A persistent entity mapping that uses a single table to store entities based on a discriminator.
-
-
Constructor Summary
Constructors Constructor Description DiscriminatorPersistentEntity(AuditTableData auditTableData, 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(JaxbHbmHibernateMapping mapping)JaxbHbmDiscriminatorSubclassEntityTypebuildJaxbMapping()StringgetDiscriminatorValue()List<Join>getJoins()Get an unmodifiable list of joins associated with entity mapping.booleanisJoinAware()voidsetDiscriminatorValue(String discriminatorValue)-
Methods inherited from class org.hibernate.envers.boot.model.SubclassPersistentEntity
getExtends, setExtends
-
Methods inherited from class org.hibernate.envers.boot.model.PersistentEntity
getAuditTableData, getPersistentClass
-
-
-
-
Constructor Detail
-
DiscriminatorPersistentEntity
public DiscriminatorPersistentEntity(AuditTableData auditTableData, PersistentClass persistentClass)
-
-
Method Detail
-
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
-
isJoinAware
public boolean isJoinAware()
- Overrides:
isJoinAwarein classPersistentEntity
-
getDiscriminatorValue
public String getDiscriminatorValue()
-
setDiscriminatorValue
public void setDiscriminatorValue(String discriminatorValue)
-
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(JaxbHbmHibernateMapping mapping)
- Specified by:
buildin classPersistentEntity
-
buildJaxbMapping
public JaxbHbmDiscriminatorSubclassEntityType buildJaxbMapping()
-
-