Class ClassPropertyHolder
java.lang.Object
org.hibernate.boot.model.internal.AbstractPropertyHolder
org.hibernate.boot.model.internal.ClassPropertyHolder
- All Implemented Interfaces:
PropertyHolder
- Author:
- Emmanuel Bernard
-
Field Summary
Fields inherited from class org.hibernate.boot.model.internal.AbstractPropertyHolder
parent -
Constructor Summary
ConstructorsConstructorDescriptionClassPropertyHolder(PersistentClass persistentClass, XClass entityXClass, Map<String, Join> joins, MetadataBuildingContext context, Map<XClass, InheritanceState> inheritanceStatePerClass) ClassPropertyHolder(PersistentClass persistentClass, XClass entityXClass, EntityBinder entityBinder, MetadataBuildingContext context, Map<XClass, InheritanceState> inheritanceStatePerClass) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(Property prop, XClass declaringClass) voidaddProperty(Property prop, AnnotatedColumns columns, XClass declaringClass) protected Map<String,AttributeConversionInfo> buildAttributeConversionInfoMap(XClass entityXClass) getTable()static voidhandleGenericComponentProperty(Property property, MetadataBuildingContext context) Embeddable classes can be defined using generics.booleanbooleanisEntity()booleanReturn true if this component is or is embedded in a @EmbeddedIdbooleanReturn true if this component is within an @ElementCollection.protected AttributeConversionInfoprotected AttributeConversionInfolocateAttributeConversionInfo(XProperty property) protected StringnormalizeCompositePath(String attributeName) protected StringnormalizeCompositePathForLogging(String attributeName) voidstartingProperty(XProperty property) Called during binding to allow the PropertyHolder to inspect its discovered properties.toString()Methods inherited from class org.hibernate.boot.model.internal.AbstractPropertyHolder
buildExceptionFromInstantiationError, getContext, getJoinTable, getOverriddenColumn, getOverriddenColumnTransformer, getOverriddenForeignKey, getOverriddenJoinColumn, getOverriddenJoinTable, getPath, isInIdClass, makeAttributeConverterDescriptor, resolveAttributeConverterDescriptor, setCurrentProperty, setInIdClass, setParentProperty
-
Constructor Details
-
ClassPropertyHolder
public ClassPropertyHolder(PersistentClass persistentClass, XClass entityXClass, Map<String, Join> joins, MetadataBuildingContext context, Map<XClass, InheritanceState> inheritanceStatePerClass) -
ClassPropertyHolder
public ClassPropertyHolder(PersistentClass persistentClass, XClass entityXClass, EntityBinder entityBinder, MetadataBuildingContext context, Map<XClass, InheritanceState> inheritanceStatePerClass)
-
-
Method Details
-
normalizeCompositePath
- Specified by:
normalizeCompositePathin classAbstractPropertyHolder
-
normalizeCompositePathForLogging
- Specified by:
normalizeCompositePathForLoggingin classAbstractPropertyHolder
-
buildAttributeConversionInfoMap
-
startingProperty
Description copied from interface:PropertyHolderCalled during binding to allow the PropertyHolder to inspect its discovered properties. Mainly this is used in collecting attribute conversion declarations (via @Convert/@Converts).- Parameters:
property- The property
-
locateAttributeConversionInfo
- Specified by:
locateAttributeConversionInfoin classAbstractPropertyHolder
-
locateAttributeConversionInfo
- Specified by:
locateAttributeConversionInfoin classAbstractPropertyHolder
-
getEntityName
-
addProperty
-
addProperty
-
addJoin
-
addJoin
-
handleGenericComponentProperty
public static void handleGenericComponentProperty(Property property, MetadataBuildingContext context) Embeddable classes can be defined using generics. For this reason, we must check every property value and specially handle generic components by setting the property as generic, to later be able to resolve its concrete type, and creating a new component with correctly typed sub-properties for the metamodel. -
getClassName
-
getEntityOwnerClassName
-
getTable
-
isComponent
public boolean isComponent() -
isEntity
public boolean isEntity() -
getPersistentClass
-
getIdentifier
-
isOrWithinEmbeddedId
public boolean isOrWithinEmbeddedId()Description copied from interface:PropertyHolderReturn true if this component is or is embedded in a @EmbeddedId -
isWithinElementCollection
public boolean isWithinElementCollection()Description copied from interface:PropertyHolderReturn true if this component is within an @ElementCollection. -
toString
-