Package org.hibernate.mapping
Class MappingHelper
java.lang.Object
org.hibernate.mapping.MappingHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnyTypeanyMapping(Type metaType, Type identifierType, Map<Object, String> metaValueToEntityNameMap, boolean lazy, MetadataBuildingContext buildingContext) static voidcheckPropertyColumnDuplication(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 CollectionTypecustomCollection(String typeName, Properties typeParameters, String role, String propertyRef, MetadataImplementor metadata) static voidinjectParameters(Object type, Supplier<Properties> parameterAccess) static voidinjectParameters(Object type, Properties parameters) static ManyToOneTypemanyToOne(String referencedEntityName, boolean referenceToPrimaryKey, String referencedPropertyName, String propertyName, boolean isLogicalOneToOne, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, MetadataBuildingContext buildingContext) static OneToOneTypeoneToOne(String referencedEntityName, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String referencedPropertyName, boolean lazy, boolean unwrapProxy, String owningEntityName, String owningEntityPropertyName, boolean constrained, MetadataBuildingContext buildingContext) static SpecialOneToOneTypespecialOneToOne(String referencedEntityName, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String referencedPropertyName, boolean lazy, boolean unwrapProxy, String owningEntityName, String owningEntityPropertyName, boolean constrained, MetadataBuildingContext buildingContext)
-
Method Details
-
customCollection
public static CollectionType customCollection(String typeName, Properties typeParameters, String role, String propertyRef, MetadataImplementor metadata) -
injectParameters
-
injectParameters
-
anyMapping
-
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
-