Class MappingModelCreationHelper
- java.lang.Object
-
- org.hibernate.metamodel.mapping.internal.MappingModelCreationHelper
-
public class MappingModelCreationHelper extends Object
-
-
Method Summary
-
-
-
Method Detail
-
buildEncapsulatedCompositeIdentifierMapping
public static EntityIdentifierMapping buildEncapsulatedCompositeIdentifierMapping(EntityPersister entityPersister, Property bootProperty, String attributeName, String rootTableName, String[] rootTableKeyColumnNames, CompositeType cidType, MappingModelCreationProcess creationProcess)
-
buildNonEncapsulatedCompositeIdentifierMapping
public static CompositeIdentifierMapping buildNonEncapsulatedCompositeIdentifierMapping(EntityPersister entityPersister, String rootTableName, String[] rootTableKeyColumnNames, PersistentClass bootEntityDescriptor, MappingModelCreationProcess creationProcess)
-
buildBasicAttributeMapping
public static BasicAttributeMapping buildBasicAttributeMapping(String attrName, NavigableRole navigableRole, int stateArrayPosition, Property bootProperty, ManagedMappingType declaringType, BasicType attrType, String tableExpression, String attrColumnName, boolean isAttrFormula, String readExpr, String writeExpr, String columnDefinition, Long length, Integer precision, Integer scale, PropertyAccess propertyAccess, CascadeStyle cascadeStyle, MappingModelCreationProcess creationProcess)
-
buildEmbeddedAttributeMapping
public static EmbeddedAttributeMapping buildEmbeddedAttributeMapping(String attrName, int stateArrayPosition, Property bootProperty, ManagedMappingType declaringType, CompositeType attrType, String tableExpression, String[] rootTableKeyColumnNames, PropertyAccess propertyAccess, CascadeStyle cascadeStyle, MappingModelCreationProcess creationProcess)
-
buildEmbeddedAttributeMapping
public static EmbeddedAttributeMapping buildEmbeddedAttributeMapping(String attrName, int stateArrayPosition, Property bootProperty, DependantValue dependantValue, int dependantColumnIndex, ManagedMappingType declaringType, CompositeType attrType, String tableExpression, String[] rootTableKeyColumnNames, PropertyAccess propertyAccess, CascadeStyle cascadeStyle, MappingModelCreationProcess creationProcess)
-
getAttributeMetadataAccess
protected static AttributeMetadataAccess getAttributeMetadataAccess(Property bootProperty, Type attrType, PropertyAccess propertyAccess, CascadeStyle cascadeStyle, MappingModelCreationProcess creationProcess)
-
getAttributeMetadataAccess
public static AttributeMetadataAccess getAttributeMetadataAccess(PropertyAccess propertyAccess)
-
buildPluralAttributeMapping
public static PluralAttributeMapping buildPluralAttributeMapping(String attrName, int stateArrayPosition, Property bootProperty, ManagedMappingType declaringType, PropertyAccess propertyAccess, CascadeStyle cascadeStyle, FetchMode fetchMode, MappingModelCreationProcess creationProcess)
-
interpretToOneKeyDescriptor
public static boolean interpretToOneKeyDescriptor(ToOneAttributeMapping attributeMapping, Property bootProperty, ToOne bootValueMapping, PropertyAccess inversePropertyAccess, Dialect dialect, MappingModelCreationProcess creationProcess)
Tries toToOneAttributeMapping.setForeignKeyDescriptor(org.hibernate.metamodel.mapping.ForeignKeyDescriptor)
to the given attributeattributeMapping
.- Parameters:
attributeMapping
- The attribute for which we try to set the foreign keybootProperty
- The propertybootValueMapping
- The value mappinginversePropertyAccess
- Access to the inverse propertydialect
- Current dialectcreationProcess
- Current creation process- Returns:
- true if the foreign key is actually set
-
buildEmbeddableForeignKeyDescriptor
public static EmbeddedForeignKeyDescriptor buildEmbeddableForeignKeyDescriptor(EmbeddableValuedModelPart embeddableValuedModelPart, Value bootValueMapping, ManagedMappingType keyDeclaringType, TableGroupProducer keyDeclaringTableGroupProducer, boolean inverse, Dialect dialect, MappingModelCreationProcess creationProcess)
-
getTableIdentifierExpression
public static String getTableIdentifierExpression(Table table, MappingModelCreationProcess creationProcess)
-
getTableIdentifierExpression
public static String getTableIdentifierExpression(Table table, SessionFactoryImplementor sessionFactory)
-
createInverseModelPart
public static EmbeddedAttributeMapping createInverseModelPart(EmbeddableValuedModelPart modelPart, ManagedMappingType keyDeclaringType, TableGroupProducer declaringTableGroupProducer, SelectableMappings selectableMappings, MappingModelCreationProcess creationProcess)
-
buildSingularAssociationAttributeMapping
public static ToOneAttributeMapping buildSingularAssociationAttributeMapping(String attrName, NavigableRole navigableRole, int stateArrayPosition, Property bootProperty, ManagedMappingType declaringType, EntityPersister declaringEntityPersister, EntityType attrType, PropertyAccess propertyAccess, CascadeStyle cascadeStyle, MappingModelCreationProcess creationProcess)
-
-