Top Fields Constructors Methods
org.hibernate.mapping

public final Class MappingHelper

extends Object
Class Inheritance
Annotations
@Internal
Imports
java.util.List, .Map, .Properties, .Set, java.util.function.Supplier, org.hibernate.Internal, .MappingException, org.hibernate.boot.BootLogging, org.hibernate.boot.model.internal.DelayedParameterizedTypeBean, org.hibernate.boot.registry.classloading.spi.ClassLoaderService, org.hibernate.boot.spi.MetadataBuildingContext, .MetadataImplementor, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.resource.beans.internal.FallbackBeanInstanceProducer, org.hibernate.resource.beans.spi.ManagedBean, .ManagedBeanRegistry, .ProvidedInstanceManagedBeanImpl, org.hibernate.type.AnyType, .CollectionType, .CustomCollectionType, .ForeignKeyDirection, .ManyToOneType, .MetaType, .OneToOneType, .SpecialOneToOneType, .Type, org.hibernate.usertype.ParameterizedType, .UserCollectionType

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final Properties

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AnyType
anyMapping(Type metaType, Type identifierType, Map<Object, String> metaValueToEntityNameMap, boolean lazy, MetadataBuildingContext buildingContext)

public static void
checkPropertyColumnDuplication(Set<String> distinctColumns, List<Property> properties, String owner)

public static ManagedBean<UserCollectionType>
createLocalUserCollectionTypeBean(String role, Class<? extends UserCollectionType> implementation, boolean hasParameters, Map<String, String> parameters)

public static CollectionType
customCollection(String typeName, Properties typeParameters, String role, String propertyRef, MetadataImplementor metadata)

Deprecated as a consequence of MetadataImplementor being deprecated.
public static void
public static void
injectParameters(Object type, Supplier<Properties> parameterAccess)

public static ManyToOneType
manyToOne(String referencedEntityName, boolean referenceToPrimaryKey, String referencedPropertyName, String propertyName, boolean isLogicalOneToOne, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, MetadataBuildingContext buildingContext)

public static OneToOneType
oneToOne(String referencedEntityName, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String referencedPropertyName, boolean lazy, boolean unwrapProxy, String owningEntityName, String owningEntityPropertyName, boolean constrained, MetadataBuildingContext buildingContext)

public static SpecialOneToOneType
specialOneToOne(String referencedEntityName, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String referencedPropertyName, boolean lazy, boolean unwrapProxy, String owningEntityName, String owningEntityPropertyName, boolean constrained, MetadataBuildingContext buildingContext)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTY_PROPERTIESback to summary
private static final Properties EMPTY_PROPERTIES

Constructor Detail

MappingHelperback to summary
private MappingHelper()

Method Detail

anyMappingback to summary
public static AnyType anyMapping(Type metaType, Type identifierType, Map<Object, String> metaValueToEntityNameMap, boolean lazy, MetadataBuildingContext buildingContext)
checkPropertyColumnDuplicationback to summary
public static void checkPropertyColumnDuplication(Set<String> distinctColumns, List<Property> properties, String owner) throws MappingException
createLocalUserCollectionTypeBeanback to summary
public static ManagedBean<UserCollectionType> createLocalUserCollectionTypeBean(String role, Class<? extends UserCollectionType> implementation, boolean hasParameters, Map<String, String> parameters)
customCollectionback to summary
public static CollectionType customCollection(String typeName, Properties typeParameters, String role, String propertyRef, MetadataImplementor metadata)

Deprecated

as a consequence of MetadataImplementor being deprecated. See corresponding docs for further information.

injectParametersback to summary
public static void injectParameters(Object type, Properties parameters)
injectParametersback to summary
public static void injectParameters(Object type, Supplier<Properties> parameterAccess)
manyToOneback to summary
public static ManyToOneType manyToOne(String referencedEntityName, boolean referenceToPrimaryKey, String referencedPropertyName, String propertyName, boolean isLogicalOneToOne, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, MetadataBuildingContext buildingContext)
oneToOneback to summary
public static OneToOneType oneToOne(String referencedEntityName, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String referencedPropertyName, boolean lazy, boolean unwrapProxy, String owningEntityName, String owningEntityPropertyName, boolean constrained, MetadataBuildingContext buildingContext)
specialOneToOneback to summary
public static SpecialOneToOneType specialOneToOne(String referencedEntityName, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String referencedPropertyName, boolean lazy, boolean unwrapProxy, String owningEntityName, String owningEntityPropertyName, boolean constrained, MetadataBuildingContext buildingContext)