Package org.hibernate.mapping
Class MappingHelper
- java.lang.Object
-
- org.hibernate.mapping.MappingHelper
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AnyType
anyMapping(Type metaType, Type identifierType, Map<Object,String> metaValueToEntityNameMap, boolean lazy, MetadataBuildingContext buildingContext)
static void
checkPropertyColumnDuplication(Set<String> distinctColumns, List<Property> properties, String owner)
static ManagedBean<UserCollectionType>
createLocalUserCollectionTypeBean(String role, Class<? extends UserCollectionType> implementation, boolean hasParameters, Map<String,String> parameters)
static CollectionType
customCollection(String typeName, Properties typeParameters, String role, String propertyRef, MetadataImplementor metadata)
static void
injectParameters(Object type, Supplier<Properties> parameterAccess)
static void
injectParameters(Object type, Properties parameters)
static ManyToOneType
manyToOne(String referencedEntityName, boolean referenceToPrimaryKey, String referencedPropertyName, String propertyName, boolean isLogicalOneToOne, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, MetadataBuildingContext buildingContext)
static OneToOneType
oneToOne(String referencedEntityName, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String referencedPropertyName, boolean lazy, boolean unwrapProxy, String owningEntityName, String owningEntityPropertyName, boolean constrained, MetadataBuildingContext buildingContext)
static SpecialOneToOneType
specialOneToOne(String referencedEntityName, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String referencedPropertyName, boolean lazy, boolean unwrapProxy, String owningEntityName, String owningEntityPropertyName, boolean constrained, MetadataBuildingContext buildingContext)
-
-
-
Method Detail
-
customCollection
public static CollectionType customCollection(String typeName, Properties typeParameters, String role, String propertyRef, MetadataImplementor metadata)
-
injectParameters
public static void injectParameters(Object type, Properties parameters)
-
injectParameters
public static void injectParameters(Object type, Supplier<Properties> parameterAccess)
-
anyMapping
public static AnyType anyMapping(Type metaType, Type identifierType, Map<Object,String> metaValueToEntityNameMap, boolean lazy, MetadataBuildingContext buildingContext)
-
manyToOne
public static ManyToOneType manyToOne(String referencedEntityName, boolean referenceToPrimaryKey, String referencedPropertyName, String propertyName, boolean isLogicalOneToOne, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, MetadataBuildingContext buildingContext)
-
specialOneToOne
public static SpecialOneToOneType specialOneToOne(String referencedEntityName, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String referencedPropertyName, boolean lazy, boolean unwrapProxy, String owningEntityName, String owningEntityPropertyName, boolean constrained, MetadataBuildingContext buildingContext)
-
oneToOne
public static OneToOneType oneToOne(String referencedEntityName, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String referencedPropertyName, boolean lazy, boolean unwrapProxy, String owningEntityName, String owningEntityPropertyName, boolean constrained, MetadataBuildingContext buildingContext)
-
createLocalUserCollectionTypeBean
public static ManagedBean<UserCollectionType> createLocalUserCollectionTypeBean(String role, Class<? extends UserCollectionType> implementation, boolean hasParameters, Map<String,String> parameters)
-
checkPropertyColumnDuplication
public static void checkPropertyColumnDuplication(Set<String> distinctColumns, List<Property> properties, String owner) throws MappingException
- Throws:
MappingException
-
-