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 Details

    • RootPersistentEntity

      public RootPersistentEntity(AuditTableData auditTableData, org.hibernate.mapping.PersistentClass persistentClass)
    • RootPersistentEntity

      public RootPersistentEntity(AuditTableData auditTableData, Class<?> clazz, String entityName, String tableName)
  • Method Details

    • addAttribute

      public void addAttribute(Attribute attribute)
      Description copied from interface: AttributeContainer
      Add an attribute to the container.
      Specified by:
      addAttribute in interface AttributeContainer
      Parameters:
      attribute - the attribute, should not be null
    • 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 interface JoinAwarePersistentEntity
      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 interface JoinAwarePersistentEntity
      Parameters:
      join - the secondary table join, should never be null
    • build

      public void build(org.hibernate.boot.jaxb.hbm.spi.JaxbHbmHibernateMapping mapping)