Interface MetadataImplementor
- All Superinterfaces:
MappingContext, Metadata
- All Known Subinterfaces:
InFlightMetadataCollector
- All Known Implementing Classes:
AbstractDelegatingMetadata
-
Method Summary
Modifier and TypeMethodDescriptionBuild the repository of named queries, named result set mappings, and named entity graphs.Short-hand form of building aSessionFactorythrough the builder without any additional option overrides.Access to theSqmFunctionRegistrybelonging to theBootstrapContextgetGenericComponent(Class<?> componentClass) Access to the options used to build thisMetadataAccess to thePersistenceUnitCallbackDefinitions belonging to theBootstrapContextAccess to theTypeConfigurationbelonging to theBootstrapContextvoidinitSessionFactory(SessionFactoryImplementor sessionFactoryImplementor) voidorderColumns(boolean forceOrdering) resolveEmbeddableDiscriminatorType(Class<?> embeddableClass, Supplier<DiscriminatorType<?>> supplier) voidvalidate()voidvisitRegisteredComponents(Consumer<Component> consumer) Methods inherited from interface MappingContext
getIdentifierPropertyName, getIdentifierType, getReferencedPropertyTypeMethods inherited from interface Metadata
collectTableMappings, getCollectionBinding, getCollectionBindings, getContributors, getDatabase, getEntityBinding, getEntityBindings, getFetchProfile, getFetchProfiles, getFilterDefinition, getFilterDefinitions, getIdentifierGenerator, getImports, getNamedEntityGraph, getNamedEntityGraphs, getNamedHqlQueryMapping, getNamedNativeQueryMapping, getNamedProcedureCallMapping, getResultSetMapping, getSessionFactoryBuilder, getSqlFunctionMap, getTypeDefinition, getUUID, visitNamedHqlQueryDefinitions, visitNamedNativeQueryDefinitions, visitNamedProcedureCallDefinition, visitNamedResultSetMappingDefinition
-
Method Details
-
getMetadataBuildingOptions
Access to the options used to build thisMetadata- Returns:
- The
MetadataBuildingOptions
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()Access to theTypeConfigurationbelonging to theBootstrapContext -
getFunctionRegistry
SqmFunctionRegistry getFunctionRegistry()Access to theSqmFunctionRegistrybelonging to theBootstrapContext -
buildNamedQueryRepository
NamedObjectRepository buildNamedQueryRepository()Build the repository of named queries, named result set mappings, and named entity graphs. -
getPersistenceUnitLifecycleCallbackDefinitions
List<PersistenceUnitCallbackDefinition> getPersistenceUnitLifecycleCallbackDefinitions()Access to thePersistenceUnitCallbackDefinitions belonging to theBootstrapContext- Since:
- 8.0
-
orderColumns
-
validate
- Throws:
MappingException
-
getMappedSuperclassMappingsCopy
Set<MappedSuperclass> getMappedSuperclassMappingsCopy() -
initSessionFactory
-
visitRegisteredComponents
-
getGenericComponent
-
resolveEmbeddableDiscriminatorType
DiscriminatorType<?> resolveEmbeddableDiscriminatorType(Class<?> embeddableClass, Supplier<DiscriminatorType<?>> supplier) -
buildSessionFactory
Description copied from interface:MetadataShort-hand form of building aSessionFactorythrough the builder without any additional option overrides.- Specified by:
buildSessionFactoryin interfaceMetadata- Returns:
- THe built SessionFactory.
-