Class EntityBinder


  • public class EntityBinder
    extends Object
    Stateful holder and processor for binding Entity information
    • Constructor Detail

      • EntityBinder

        public EntityBinder()
        Use as a fake one for Collection of elements
      • EntityBinder

        public EntityBinder​(jakarta.persistence.Entity ejb3Ann,
                            org.hibernate.annotations.common.reflection.XClass annotatedClass,
                            PersistentClass persistentClass,
                            MetadataBuildingContext context)
    • Method Detail

      • wrapIdsInEmbeddedComponents

        public boolean wrapIdsInEmbeddedComponents()
      • isPropertyDefinedInSuperHierarchy

        public boolean isPropertyDefinedInSuperHierarchy​(String name)
        For the most part, this is a simple delegation to PersistentClass.isPropertyDefinedInHierarchy(java.lang.String), after verifying that PersistentClass is indeed set here.
        Parameters:
        name - The name of the property to check
        Returns:
        true if a property by that given name does already exist in the super hierarchy.
      • isRootEntity

        public boolean isRootEntity()
      • setDiscriminatorValue

        public void setDiscriminatorValue​(String discriminatorValue)
      • setForceDiscriminator

        public void setForceDiscriminator​(boolean forceDiscriminator)
      • setInsertableDiscriminator

        public void setInsertableDiscriminator​(boolean insertableDiscriminator)
      • bindEntity

        public void bindEntity()
      • bindDiscriminatorValue

        public void bindDiscriminatorValue()
      • setBatchSize

        public void setBatchSize​(BatchSize sizeAnn)
      • setProxy

        public void setProxy​(Proxy proxy)
      • setWhere

        public void setWhere​(Where whereAnn)
      • setWrapIdsInEmbeddedComponents

        public void setWrapIdsInEmbeddedComponents​(boolean wrapIdsInEmbeddedComponents)
      • applyCaching

        public void applyCaching​(org.hibernate.annotations.common.reflection.XClass clazzToProcess,
                                 jakarta.persistence.SharedCacheMode sharedCacheMode,
                                 MetadataBuildingContext context)
      • finalSecondaryTableBinding

        public void finalSecondaryTableBinding​(PropertyHolder propertyHolder)
      • firstLevelSecondaryTablesBinding

        public void firstLevelSecondaryTablesBinding​(jakarta.persistence.SecondaryTable secTable,
                                                     jakarta.persistence.SecondaryTables secTables)
      • addJoin

        public Join addJoin​(jakarta.persistence.JoinTable joinTable,
                            PropertyHolder holder,
                            boolean noDelayInPkColumnCreation)
      • getSecondaryTables

        public Map<String,​Join> getSecondaryTables()
      • addFilter

        public void addFilter​(Filter filter)
      • setInheritanceState

        public void setInheritanceState​(InheritanceState inheritanceState)
      • isIgnoreIdAnnotations

        public boolean isIgnoreIdAnnotations()
      • setIgnoreIdAnnotations

        public void setIgnoreIdAnnotations​(boolean ignoreIdAnnotations)
      • processComplementaryTableDefinitions

        public void processComplementaryTableDefinitions​(jakarta.persistence.Table table)
      • processComplementaryTableDefinitions

        public void processComplementaryTableDefinitions​(Table table)
      • processComplementaryTableDefinitions

        public void processComplementaryTableDefinitions​(Tables tables)
      • getPropertyAccessType

        public AccessType getPropertyAccessType()
      • setPropertyAccessType

        public void setPropertyAccessType​(AccessType propertyAccessor)
      • getPropertyAccessor

        public AccessType getPropertyAccessor​(org.hibernate.annotations.common.reflection.XAnnotatedElement element)
      • getExplicitAccessType

        public AccessType getExplicitAccessType​(org.hibernate.annotations.common.reflection.XAnnotatedElement element)