Class 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 Details

    • DiscriminatorPersistentEntity

      public DiscriminatorPersistentEntity(AuditTableData auditTableData, org.hibernate.mapping.PersistentClass persistentClass)
  • 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
    • isJoinAware

      public boolean isJoinAware()
      Overrides:
      isJoinAware in class PersistentEntity
    • getDiscriminatorValue

      public String getDiscriminatorValue()
    • setDiscriminatorValue

      public void setDiscriminatorValue(String discriminatorValue)
    • 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)
      Specified by:
      build in class PersistentEntity
    • buildJaxbMapping

      public org.hibernate.boot.jaxb.hbm.spi.JaxbHbmDiscriminatorSubclassEntityType buildJaxbMapping()