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
ConstructorsConstructorDescriptionDiscriminatorPersistentEntity
(org.hibernate.envers.configuration.internal.metadata.AuditTableData auditTableData, org.hibernate.mapping.PersistentClass persistentClass) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(Attribute attribute) Add an attribute to the container.void
Add a secondary table join to the entity mapping.void
build
(org.hibernate.boot.jaxb.hbm.spi.JaxbHbmHibernateMapping mapping) org.hibernate.boot.jaxb.hbm.spi.JaxbHbmDiscriminatorSubclassEntityType
getJoins()
Get an unmodifiable list of joins associated with entity mapping.boolean
void
setDiscriminatorValue
(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 Details
-
DiscriminatorPersistentEntity
public DiscriminatorPersistentEntity(org.hibernate.envers.configuration.internal.metadata.AuditTableData auditTableData, org.hibernate.mapping.PersistentClass persistentClass)
-
-
Method Details
-
addAttribute
Description copied from interface:AttributeContainer
Add an attribute to the container.- Specified by:
addAttribute
in interfaceAttributeContainer
- Parameters:
attribute
- the attribute, should not benull
-
isJoinAware
public boolean isJoinAware()- Overrides:
isJoinAware
in classPersistentEntity
-
getDiscriminatorValue
-
setDiscriminatorValue
-
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
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(org.hibernate.boot.jaxb.hbm.spi.JaxbHbmHibernateMapping mapping) - Specified by:
build
in classPersistentEntity
-
buildJaxbMapping
public org.hibernate.boot.jaxb.hbm.spi.JaxbHbmDiscriminatorSubclassEntityType buildJaxbMapping()
-