Uses of Interface
org.hibernate.boot.spi.MetadataBuildingContext
-
Packages that use MetadataBuildingContext Package Description org.hibernate.binder This package defines an easy way to extend Hibernate with user-defined annotations that define customized O/R mappings of annotated entities and annotated entity attributes.org.hibernate.binder.internal Built-in implementations ofAttributeBinder
andTypeBinder
.org.hibernate.boot This package contains the interfaces that make up the bootstrap API for Hibernate.org.hibernate.boot.internal org.hibernate.boot.model This package defines the boot-time metamodel, which is an interpretation of the domain model (entity classes, embeddable classes, and attributes) and the mapping of these "domain model parts" to the database.org.hibernate.boot.model.convert.internal org.hibernate.boot.model.convert.spi Defines the SPI of a registry of JPAAttributeConverter
s.org.hibernate.boot.model.internal org.hibernate.boot.model.naming This API allows intervention by generic code in the process of determining the names of database objects (tables, columns, and constraints).org.hibernate.boot.model.process.internal org.hibernate.boot.model.source.internal.hbm org.hibernate.boot.model.source.spi org.hibernate.boot.query Support for handling named queries during the bootstrap process.org.hibernate.boot.spi A range of SPIs allowing integration with—and customization of—the process of building metadata.org.hibernate.envers.boot.internal org.hibernate.envers.boot.spi org.hibernate.id This package and its subpackages, especiallyorg.hibernate.id.enhanced
, contain the built-in id generators, all of which implement eitherIdentifierGenerator
orPostInsertIdentifierGenerator
.org.hibernate.mapping This package defines the Hibernate configuration-time mapping model.org.hibernate.processor.validation Validation for HQL queries.org.hibernate.testing.boot org.hibernate.type A HibernateType
is a strategy for mapping a Java property type to a JDBC type or types.org.hibernate.type.spi Defines a registry for HibernateType
s. -
-
Uses of MetadataBuildingContext in org.hibernate.binder
Methods in org.hibernate.binder with parameters of type MetadataBuildingContext Modifier and Type Method Description void
AttributeBinder. bind(A annotation, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property)
Perform some custom configuration of the model relating to the given annotatedProperty
of the given entity class or embeddable class.void
TypeBinder. bind(A annotation, MetadataBuildingContext buildingContext, Component embeddableClass)
Perform some custom configuration of the model relating to the given annotated embeddable class.void
TypeBinder. bind(A annotation, MetadataBuildingContext buildingContext, PersistentClass persistentClass)
Perform some custom configuration of the model relating to the given annotated entity class. -
Uses of MetadataBuildingContext in org.hibernate.binder.internal
Methods in org.hibernate.binder.internal with parameters of type MetadataBuildingContext Modifier and Type Method Description void
AttributeAccessorBinder. bind(AttributeAccessor accessor, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property)
void
BatchSizeBinder. bind(BatchSize batchSize, MetadataBuildingContext context, Component embeddableClass)
void
BatchSizeBinder. bind(BatchSize batchSize, MetadataBuildingContext context, PersistentClass persistentClass)
void
BatchSizeBinder. bind(BatchSize batchSize, MetadataBuildingContext context, PersistentClass persistentClass, Property property)
void
CollateBinder. bind(Collate collate, MetadataBuildingContext context, PersistentClass entity, Property property)
void
CommentBinder. bind(Comment comment, MetadataBuildingContext context, Component embeddable)
void
CommentBinder. bind(Comment comment, MetadataBuildingContext context, PersistentClass entity)
void
CommentBinder. bind(Comment comment, MetadataBuildingContext context, PersistentClass entity, Property property)
void
CommentsBinder. bind(Comments comments, MetadataBuildingContext context, Component embeddable)
void
CommentsBinder. bind(Comments comments, MetadataBuildingContext context, PersistentClass entity)
void
CommentsBinder. bind(Comments comments, MetadataBuildingContext context, PersistentClass entity, Property property)
void
DiscriminatorOptionsBinder. bind(DiscriminatorOptions options, MetadataBuildingContext context, Component embeddableClass)
void
DiscriminatorOptionsBinder. bind(DiscriminatorOptions options, MetadataBuildingContext context, PersistentClass persistentClass)
void
TenantIdBinder. bind(TenantId tenantId, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property)
-
Uses of MetadataBuildingContext in org.hibernate.boot
Methods in org.hibernate.boot with parameters of type MetadataBuildingContext Modifier and Type Method Description ConverterDescriptor
AttributeConverterInfo. toConverterDescriptor(MetadataBuildingContext context)
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of MetadataBuildingContext in org.hibernate.boot.internal
Classes in org.hibernate.boot.internal that implement MetadataBuildingContext Modifier and Type Class Description class
MetadataBuildingContextRootImpl
RootMetadataBuildingContext
.Methods in org.hibernate.boot.internal that return MetadataBuildingContext Modifier and Type Method Description MetadataBuildingContext
ForeignKeyNameSource. getBuildingContext()
Methods in org.hibernate.boot.internal with parameters of type MetadataBuildingContext Modifier and Type Method Description Table
InFlightMetadataCollectorImpl. addDenormalizedTable(String schemaName, String catalogName, String name, boolean isAbstract, String subselectFragment, Table includedTable, MetadataBuildingContext buildingContext)
Table
InFlightMetadataCollectorImpl. addTable(String schemaName, String catalogName, String name, String subselectFragment, boolean isAbstract, MetadataBuildingContext buildingContext)
MetadataImpl
InFlightMetadataCollectorImpl. buildMetadataInstance(MetadataBuildingContext buildingContext)
Builds the complete and immutable Metadata instance from the collected info.void
InFlightMetadataCollectorImpl. processSecondPasses(MetadataBuildingContext buildingContext)
Ugh! But we need this done before we ask Envers to produce its entities.protected void
InFlightMetadataCollectorImpl. secondPassCompileForeignKeys(Table table, Set<ForeignKey> done, MetadataBuildingContext buildingContext)
Method parameters in org.hibernate.boot.internal with type arguments of type MetadataBuildingContext Modifier and Type Method Description void
InFlightMetadataCollectorImpl. registerValueMappingResolver(Function<MetadataBuildingContext,Boolean> resolver)
Constructors in org.hibernate.boot.internal with parameters of type MetadataBuildingContext Constructor Description ForeignKeyNameSource(ForeignKey foreignKey, Table table, MetadataBuildingContext buildingContext)
-
Uses of MetadataBuildingContext in org.hibernate.boot.model
Methods in org.hibernate.boot.model with parameters of type MetadataBuildingContext Modifier and Type Method Description static BasicValue.Resolution<?>
TypeDefinition. createLocalResolution(String name, Class<?> typeImplementorClass, Map<?,?> localTypeParams, MetadataBuildingContext buildingContext)
BasicValue.Resolution<?>
TypeDefinition. resolve(Map<?,?> localConfigParameters, MutabilityPlan<?> explicitMutabilityPlan, MetadataBuildingContext context, JdbcTypeIndicators indicators)
-
Uses of MetadataBuildingContext in org.hibernate.boot.model.convert.internal
Methods in org.hibernate.boot.model.convert.internal with parameters of type MetadataBuildingContext Modifier and Type Method Description ConverterDescriptor
AttributeConverterManager. findAutoApplyConverterForAttribute(org.hibernate.annotations.common.reflection.XProperty property, MetadataBuildingContext context)
ConverterDescriptor
AttributeConverterManager. findAutoApplyConverterForCollectionElement(org.hibernate.annotations.common.reflection.XProperty property, MetadataBuildingContext context)
ConverterDescriptor
AttributeConverterManager. findAutoApplyConverterForMapKey(org.hibernate.annotations.common.reflection.XProperty property, MetadataBuildingContext context)
ConverterDescriptor
AutoApplicableConverterDescriptorBypassedImpl. getAutoAppliedConverterDescriptorForAttribute(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)
ConverterDescriptor
AutoApplicableConverterDescriptorStandardImpl. getAutoAppliedConverterDescriptorForAttribute(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)
ConverterDescriptor
AutoApplicableConverterDescriptorBypassedImpl. getAutoAppliedConverterDescriptorForCollectionElement(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)
ConverterDescriptor
AutoApplicableConverterDescriptorStandardImpl. getAutoAppliedConverterDescriptorForCollectionElement(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)
ConverterDescriptor
AutoApplicableConverterDescriptorBypassedImpl. getAutoAppliedConverterDescriptorForMapKey(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)
ConverterDescriptor
AutoApplicableConverterDescriptorStandardImpl. getAutoAppliedConverterDescriptorForMapKey(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)
static com.fasterxml.classmate.ResolvedType
ConverterHelper. resolveAttributeType(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)
static com.fasterxml.classmate.members.ResolvedMember<? extends Member>
ConverterHelper. resolveMember(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext buildingContext)
-
Uses of MetadataBuildingContext in org.hibernate.boot.model.convert.spi
Methods in org.hibernate.boot.model.convert.spi with parameters of type MetadataBuildingContext Modifier and Type Method Description ConverterDescriptor
ConverterAutoApplyHandler. findAutoApplyConverterForAttribute(org.hibernate.annotations.common.reflection.XProperty property, MetadataBuildingContext context)
Resolve the auto-applied converter to be applied to a basic attribute described by the passed property descriptor.ConverterDescriptor
ConverterAutoApplyHandler. findAutoApplyConverterForCollectionElement(org.hibernate.annotations.common.reflection.XProperty property, MetadataBuildingContext context)
Resolve the auto-applied converter to be applied to the elements of a plural attribute described by the passed property descriptor.ConverterDescriptor
ConverterAutoApplyHandler. findAutoApplyConverterForMapKey(org.hibernate.annotations.common.reflection.XProperty property, MetadataBuildingContext context)
Resolve the auto-applied converter to be applied to the keys of a plural Map attribute described by the passed property descriptor.ConverterDescriptor
AutoApplicableConverterDescriptor. getAutoAppliedConverterDescriptorForAttribute(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)
ConverterDescriptor
AutoApplicableConverterDescriptor. getAutoAppliedConverterDescriptorForCollectionElement(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)
ConverterDescriptor
AutoApplicableConverterDescriptor. getAutoAppliedConverterDescriptorForMapKey(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)
Constructors in org.hibernate.boot.model.convert.spi with parameters of type MetadataBuildingContext Constructor Description RegisteredConversion(Class<?> explicitDomainType, Class<? extends AttributeConverter<?,?>> converterType, boolean autoApply, MetadataBuildingContext context)
-
Uses of MetadataBuildingContext in org.hibernate.boot.model.internal
Methods in org.hibernate.boot.model.internal that return MetadataBuildingContext Modifier and Type Method Description MetadataBuildingContext
AnnotatedColumns. getBuildingContext()
protected MetadataBuildingContext
CollectionBinder. getBuildingContext()
protected MetadataBuildingContext
AbstractPropertyHolder. getContext()
Get the mappingsMethods in org.hibernate.boot.model.internal with parameters of type MetadataBuildingContext Modifier and Type Method Description static void
AnnotationBinder. bindClass(org.hibernate.annotations.common.reflection.XClass annotatedClass, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass, MetadataBuildingContext context)
Bind an annotated class.static void
CollectionBinder. bindCollection(PropertyHolder propertyHolder, Nullability nullability, PropertyData inferredData, Map<String,IdentifierGeneratorDefinition> classGenerators, EntityBinder entityBinder, boolean isIdentifierMapper, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass, org.hibernate.annotations.common.reflection.XProperty property, AnnotatedJoinColumns joinColumns)
The first pass at binding a collection.static void
AnnotationBinder. bindDefaults(MetadataBuildingContext context)
static Component
EmbeddableBinder. bindEmbeddable(PropertyData inferredData, PropertyHolder propertyHolder, AccessType propertyAccessor, EntityBinder entityBinder, boolean isIdentifierMapper, MetadataBuildingContext context, boolean isComponentEmbedded, boolean isId, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass, String referencedEntityName, String propertyName, Class<? extends EmbeddableInstantiator> customInstantiatorImpl, Class<? extends CompositeUserType<?>> compositeUserTypeClass, AnnotatedJoinColumns columns, AnnotatedColumns annotatedColumns)
static void
EntityBinder. bindEntityClass(org.hibernate.annotations.common.reflection.XClass clazzToProcess, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStates, Map<String,IdentifierGeneratorDefinition> generators, MetadataBuildingContext context)
Bind an entity class.static void
AnnotationBinder. bindFetchProfilesForClass(org.hibernate.annotations.common.reflection.XClass annotatedClass, MetadataBuildingContext context)
static void
AnnotationBinder. bindFetchProfilesForPackage(ClassLoaderService cls, String packageName, MetadataBuildingContext context)
static void
TableBinder. bindForeignKey(PersistentClass referencedEntity, PersistentClass destinationEntity, AnnotatedJoinColumns joinColumns, SimpleValue value, boolean unique, MetadataBuildingContext buildingContext)
static void
ToOneBinder. bindForeignKeyNameAndDefinition(SimpleValue value, org.hibernate.annotations.common.reflection.XProperty property, ForeignKey foreignKey, MetadataBuildingContext context)
static void
QueryBinder. bindNamedStoredProcedureQuery(NamedStoredProcedureQuery namedStoredProcedureQuery, MetadataBuildingContext context, boolean isDefault)
static void
QueryBinder. bindNativeQueries(NamedNativeQueries namedNativeQueries, MetadataBuildingContext context, boolean isDefault)
static void
QueryBinder. bindNativeQueries(NamedNativeQueries namedNativeQueries, MetadataBuildingContext context)
static void
QueryBinder. bindNativeQuery(NamedNativeQuery namedNativeQuery, MetadataBuildingContext context, boolean isDefault)
static void
QueryBinder. bindNativeQuery(String name, SQLSelect sqlSelect, org.hibernate.annotations.common.reflection.XClass annotatedClass, MetadataBuildingContext context)
static void
QueryBinder. bindNativeQuery(NamedNativeQuery namedNativeQuery, MetadataBuildingContext context)
static void
AnnotationBinder. bindPackage(ClassLoaderService cls, String packageName, MetadataBuildingContext context)
static void
AnnotationBinder. bindQueries(org.hibernate.annotations.common.reflection.XAnnotatedElement annotatedElement, MetadataBuildingContext context)
static void
QueryBinder. bindQueries(NamedQueries namedQueries, MetadataBuildingContext context, boolean isDefault)
static void
QueryBinder. bindQueries(NamedQueries namedQueries, MetadataBuildingContext context)
static void
QueryBinder. bindQuery(NamedQuery namedQuery, MetadataBuildingContext context, boolean isDefault)
static void
QueryBinder. bindQuery(String name, HQLSelect hqlSelect, MetadataBuildingContext context)
static void
QueryBinder. bindQuery(NamedQuery namedQuery, MetadataBuildingContext context)
static void
SoftDeleteHelper. bindSoftDeleteIndicator(SoftDelete softDeleteConfig, SoftDeletable target, Table table, MetadataBuildingContext context)
Creates and binds the column and value for modeling the soft-delete in the databasestatic void
QueryBinder. bindSqlResultSetMapping(SqlResultSetMapping resultSetMapping, MetadataBuildingContext context, boolean isDefault)
static void
QueryBinder. bindSqlResultSetMappings(SqlResultSetMappings resultSetMappings, MetadataBuildingContext context, boolean isDefault)
static Table
TableBinder. buildAndFillTable(String schema, String catalog, Identifier logicalName, boolean isAbstract, UniqueConstraint[] uniqueConstraints, MetadataBuildingContext buildingContext)
static Table
TableBinder. buildAndFillTable(String schema, String catalog, Identifier logicalName, boolean isAbstract, UniqueConstraint[] uniqueConstraints, MetadataBuildingContext buildingContext, String subselect, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref)
static Any
BinderHelper. buildAnyValue(Column discriminatorColumn, Formula discriminatorFormula, AnnotatedJoinColumns keyColumns, PropertyData inferredData, OnDeleteAction onDeleteAction, boolean lazy, Nullability nullability, PropertyHolder propertyHolder, EntityBinder entityBinder, boolean optional, MetadataBuildingContext context)
static AnnotatedColumns
AnnotatedColumn. buildColumnFromAnnotation(Column column, FractionalSeconds fractionalSeconds, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, Map<String,Join> secondaryTables, MetadataBuildingContext context)
static IndexColumn
IndexColumn. buildColumnFromAnnotation(OrderColumn orderColumn, PropertyHolder propertyHolder, PropertyData inferredData, Map<String,Join> secondaryTables, MetadataBuildingContext context)
JPA 2@OrderColumn
processing.static IndexColumn
IndexColumn. buildColumnFromAnnotation(IndexColumn indexColumn, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext context)
Legacy@IndexColumn
processing.static AnnotatedColumns
AnnotatedColumn. buildColumnFromNoAnnotation(FractionalSeconds fractionalSeconds, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, Map<String,Join> secondaryTables, MetadataBuildingContext context)
static AnnotatedColumns
AnnotatedColumn. buildColumnOrFormulaFromAnnotation(Column column, Formula formulaAnn, FractionalSeconds fractionalSeconds, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, Map<String,Join> secondaryTables, MetadataBuildingContext context)
static AnnotatedColumns
AnnotatedColumn. buildColumnsFromAnnotations(Column[] columns, FractionalSeconds fractionalSeconds, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, Map<String,Join> secondaryTables, MetadataBuildingContext context)
static AnnotatedColumns
AnnotatedColumn. buildColumnsFromAnnotations(Column[] columns, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, String suffixForDefaultColumnName, Map<String,Join> secondaryTables, MetadataBuildingContext context)
static AnnotatedColumns
AnnotatedColumn. buildColumnsOrFormulaFromAnnotation(Column[] columns, Formula formulaAnn, FractionalSeconds fractionalSeconds, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, String suffixForDefaultColumnName, Map<String,Join> secondaryTables, MetadataBuildingContext context)
static AnnotatedDiscriminatorColumn
AnnotatedDiscriminatorColumn. buildDiscriminatorColumn(DiscriminatorColumn discriminatorColumn, DiscriminatorFormula discriminatorFormula, Column columnOverride, String defaultColumnName, MetadataBuildingContext context)
static AnnotatedColumns
AnnotatedColumn. buildFormulaFromAnnotation(Formula formulaAnn, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, Map<String,Join> secondaryTables, MetadataBuildingContext context)
static Map<String,IdentifierGeneratorDefinition>
GeneratorBinder. buildGenerators(org.hibernate.annotations.common.reflection.XAnnotatedElement annotatedElement, MetadataBuildingContext context)
static AnnotatedJoinColumn
AnnotatedJoinColumn. buildInheritanceJoinColumn(PrimaryKeyJoinColumn primaryKeyJoinColumn, JoinColumn joinColumn, Value identifier, AnnotatedJoinColumns parent, MetadataBuildingContext context)
Called forInheritanceType.JOINED
entities.static Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState>
AnnotationBinder. buildInheritanceStates(List<org.hibernate.annotations.common.reflection.XClass> orderedClasses, MetadataBuildingContext buildingContext)
For the mapped entities build some temporary data-structure containing information about the inheritance status of a class.static AnnotatedJoinColumns
AnnotatedJoinColumns. buildJoinColumns(JoinColumn[] joinColumns, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext buildingContext)
static AnnotatedJoinColumns
AnnotatedJoinColumns. buildJoinColumnsOrFormulas(JoinColumnOrFormula[] joinColumnOrFormulas, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext context)
static AnnotatedJoinColumns
AnnotatedJoinColumns. buildJoinColumnsWithDefaultColumnSuffix(JoinColumn[] joinColumns, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, PropertyData inferredData, String defaultColumnSuffix, MetadataBuildingContext context)
static AnnotatedJoinColumns
AnnotatedJoinColumns. buildJoinTableJoinColumns(JoinColumn[] joinColumns, Map<String,Join> secondaryTables, PropertyHolder propertyHolder, PropertyData inferredData, String mappedBy, MetadataBuildingContext context)
Called for join tables inManyToMany
associations.static PropertyHolder
PropertyHolderBuilder. buildPropertyHolder(org.hibernate.annotations.common.reflection.XClass clazzToProcess, PersistentClass persistentClass, EntityBinder entityBinder, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
static CollectionPropertyHolder
PropertyHolderBuilder. buildPropertyHolder(Collection collection, String path, org.hibernate.annotations.common.reflection.XClass clazzToProcess, org.hibernate.annotations.common.reflection.XProperty property, PropertyHolder parentPropertyHolder, MetadataBuildingContext context)
build a property holder on top of a collectionstatic PropertyHolder
PropertyHolderBuilder. buildPropertyHolder(Component component, String path, PropertyData inferredData, PropertyHolder parent, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
build a component property holderstatic PropertyHolder
PropertyHolderBuilder. buildPropertyHolder(PersistentClass persistentClass, Map<String,Join> joins, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
May only be called during the second pass phase.static NamedProcedureCallDefinition
QueryBinder. createStoredProcedure(NamedNativeQueryDefinitionBuilder builder, MetadataBuildingContext context, Supplier<RuntimeException> exceptionProducer)
static void
BinderHelper. createSyntheticPropertyReference(AnnotatedJoinColumns joinColumns, PersistentClass targetEntity, PersistentClass associatedEntity, Value value, String propertyName, boolean inverse, MetadataBuildingContext context)
Here we address a fundamental problem: the@JoinColumn
annotation specifies the referenced column in the target table viareferencedColumnName
, but Hibernate needs to know which property or field of the target entity class holds the value of the referenced column at the Java level.static Class<? extends EmbeddableInstantiator>
EmbeddableBinder. determineCustomInstantiator(org.hibernate.annotations.common.reflection.XProperty property, org.hibernate.annotations.common.reflection.XClass returnedClass, MetadataBuildingContext context)
static <A extends Annotation>
ABinderHelper. extractFromPackage(Class<A> annotationType, org.hibernate.annotations.common.reflection.XClass xClass, MetadataBuildingContext context)
Extract an annotation from the package-info for the package the given class is defined instatic AttributeContainer
BinderHelper. findColumnOwner(PersistentClass persistentClass, String columnName, MetadataBuildingContext context)
Find the column owner (ie PersistentClass or Join) of columnName.static AttributeContainer
BinderHelper. findReferencedColumnOwner(PersistentClass persistentClass, AnnotatedJoinColumn joinColumn, MetadataBuildingContext context)
static IndexColumn
IndexColumn. fromAnnotations(OrderColumn orderColumn, IndexColumn indexColumn, ListIndexBase listIndexBase, PropertyHolder propertyHolder, PropertyData inferredData, Map<String,Join> secondaryTables, MetadataBuildingContext context)
static CollectionBinder
CollectionBinder. getCollectionBinder(org.hibernate.annotations.common.reflection.XProperty property, boolean isHibernateExtensionMapping, MetadataBuildingContext buildingContext)
collection binder factorystatic MappedSuperclass
BinderHelper. getMappedSuperclassOrNull(org.hibernate.annotations.common.reflection.XClass declaringClass, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass, MetadataBuildingContext context)
static <T extends Annotation>
TBinderHelper. getOverridableAnnotation(org.hibernate.annotations.common.reflection.XAnnotatedElement element, Class<T> annotationType, MetadataBuildingContext context)
static String
ToOneBinder. getReferenceEntityName(PropertyData propertyData, org.hibernate.annotations.common.reflection.XClass targetEntity, MetadataBuildingContext context)
static String
ToOneBinder. getReferenceEntityName(PropertyData propertyData, MetadataBuildingContext context)
static org.hibernate.annotations.common.reflection.XClass
ToOneBinder. getTargetEntity(PropertyData propertyData, MetadataBuildingContext context)
static void
ClassPropertyHolder. handleGenericComponentProperty(Property property, MetadataBuildingContext context)
Embeddable classes can be defined using generics.static boolean
BinderHelper. isDefault(org.hibernate.annotations.common.reflection.XClass clazz, MetadataBuildingContext context)
static void
GeneratorBinder. makeIdGenerator(SimpleValue id, org.hibernate.annotations.common.reflection.XProperty property, String generatorType, String generatorName, MetadataBuildingContext buildingContext, Map<String,IdentifierGeneratorDefinition> localGenerators)
Apply an id generation strategy and parameters to the givenSimpleValue
which represents an identifier.static void
GeneratorBinder. makeIdGenerator(SimpleValue id, org.hibernate.annotations.common.reflection.XProperty idXProperty, String generatorType, String generatorName, MetadataBuildingContext buildingContext, IdentifierGeneratorDefinition foreignKGeneratorDefinition)
apply an id generator to a SimpleValuestatic void
AggregateComponentBinder. processAggregate(Component component, PropertyHolder propertyHolder, PropertyData inferredData, org.hibernate.annotations.common.reflection.XClass componentXClass, AnnotatedColumns columns, MetadataBuildingContext context)
static void
PropertyBinder. processElementAnnotations(PropertyHolder propertyHolder, Nullability nullability, PropertyData inferredData, Map<String,IdentifierGeneratorDefinition> classGenerators, EntityBinder entityBinder, boolean isIdentifierMapper, boolean isComponentEmbedded, boolean inSecondPass, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
Process annotation of a particular property or field.static ManagedBean<? extends UserCollectionType>
CollectionBinder. resolveCustomType(org.hibernate.annotations.common.reflection.XProperty property, CollectionType typeAnnotation, MetadataBuildingContext context)
void
AnnotatedColumns. setBuildingContext(MetadataBuildingContext buildingContext)
void
PropertyBinder. setBuildingContext(MetadataBuildingContext buildingContext)
void
TableBinder. setBuildingContext(MetadataBuildingContext buildingContext)
Constructors in org.hibernate.boot.model.internal with parameters of type MetadataBuildingContext Constructor Description AggregateComponentSecondPass(PropertyHolder propertyHolder, Component component, org.hibernate.annotations.common.reflection.XClass componentXClass, String propertyName, MetadataBuildingContext context)
ArrayBinder(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, MetadataBuildingContext buildingContext)
BagBinder(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, MetadataBuildingContext context)
BasicValueBinder(BasicValueBinder.Kind kind, MetadataBuildingContext buildingContext)
BasicValueBinder(BasicValueBinder.Kind kind, Component aggregateComponent, MetadataBuildingContext buildingContext)
ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, Map<String,Join> joins, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, EntityBinder entityBinder, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
CollectionBinder(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, boolean isSortedCollection, MetadataBuildingContext buildingContext)
CollectionPropertyHolder(Collection collection, String path, org.hibernate.annotations.common.reflection.XClass clazzToProcess, org.hibernate.annotations.common.reflection.XProperty property, PropertyHolder parentPropertyHolder, MetadataBuildingContext context)
ComponentPropertyHolder(Component component, String path, PropertyData inferredData, PropertyHolder parent, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
CopyIdentifierComponentSecondPass(Component comp, String referencedEntityName, String propertyName, AnnotatedJoinColumns joinColumns, MetadataBuildingContext buildingContext)
EntityBinder(org.hibernate.annotations.common.reflection.XClass annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context)
FetchOverrideSecondPass(String fetchProfileName, FetchProfile.FetchOverride fetch, MetadataBuildingContext buildingContext)
FetchSecondPass(FetchProfileOverride fetch, PropertyHolder propertyHolder, String propertyName, MetadataBuildingContext buildingContext)
IdBagBinder(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, MetadataBuildingContext buildingContext)
IdGeneratorResolverSecondPass(SimpleValue id, org.hibernate.annotations.common.reflection.XProperty idXProperty, String generatorType, String generatorName, MetadataBuildingContext buildingContext)
IdGeneratorResolverSecondPass(SimpleValue id, org.hibernate.annotations.common.reflection.XProperty idXProperty, String generatorType, String generatorName, MetadataBuildingContext buildingContext, IdentifierGeneratorDefinition localIdentifierGeneratorDefinition)
ImplicitToOneJoinTableSecondPass(PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext context, AnnotatedJoinColumns joinColumns, JoinTable joinTable, NotFoundAction notFoundAction, ManyToOne value)
IndexOrUniqueKeySecondPass(String indexName, AnnotatedColumn column, MetadataBuildingContext buildingContext, boolean unique)
Build an index if unique is false or a Unique Key if unique is trueIndexOrUniqueKeySecondPass(Table table, String indexName, String[] columns, MetadataBuildingContext buildingContext)
Build an indexInheritanceState(org.hibernate.annotations.common.reflection.XClass clazz, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass, MetadataBuildingContext buildingContext)
JoinedSubclassFkSecondPass(JoinedSubclass entity, AnnotatedJoinColumns inheritanceJoinedColumns, SimpleValue key, MetadataBuildingContext buildingContext)
ListBinder(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, MetadataBuildingContext buildingContext)
MapBinder(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, boolean sorted, MetadataBuildingContext buildingContext)
OneToOneSecondPass(String mappedBy, String ownerEntity, PropertyHolder propertyHolder, PropertyData inferredData, String referencedEntityName, boolean annotatedEntity, NotFoundAction notFoundAction, OnDeleteAction onDeleteAction, boolean optional, String cascadeStrategy, AnnotatedJoinColumns columns, MetadataBuildingContext buildingContext)
PrimitiveArrayBinder(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, MetadataBuildingContext buildingContext)
ResultSetMappingSecondPass(SqlResultSetMapping annotation, MetadataBuildingContext context, boolean isDefault)
SetBinder(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, boolean sorted, MetadataBuildingContext buildingContext)
ToOneFkSecondPass(ToOne value, AnnotatedJoinColumns columns, boolean unique, boolean annotatedEntity, PersistentClass persistentClass, String path, MetadataBuildingContext buildingContext)
-
Uses of MetadataBuildingContext in org.hibernate.boot.model.naming
Methods in org.hibernate.boot.model.naming that return MetadataBuildingContext Modifier and Type Method Description MetadataBuildingContext
ImplicitNameSource. getBuildingContext()
Access to the current building context.protected abstract MetadataBuildingContext
ObjectNameNormalizer. getBuildingContext()
Access the contextual information related to the current process of building metadata.Methods in org.hibernate.boot.model.naming with parameters of type MetadataBuildingContext Modifier and Type Method Description Identifier
NamingStrategyHelper. determineImplicitName(MetadataBuildingContext buildingContext)
Called when the user supplied no explicit name/identifier for the given database object.Identifier
NamingStrategyHelper. handleExplicitName(String explicitName, MetadataBuildingContext buildingContext)
Called when the user has supplied an explicit name for the database object.protected Identifier
ImplicitNamingStrategyJpaCompliantImpl. toIdentifier(String stringForm, MetadataBuildingContext buildingContext)
Easy hook to build an Identifier using the keyword safe IdentifierHelper.Identifier
NamingStrategyHelper. toPhysicalName(Identifier logicalName, MetadataBuildingContext buildingContext)
Handle converting a logical name to a physical name -
Uses of MetadataBuildingContext in org.hibernate.boot.model.process.internal
Methods in org.hibernate.boot.model.process.internal with parameters of type MetadataBuildingContext Modifier and Type Method Description static <T> BasicValue.Resolution<T>
InferredBasicValueResolver. from(BasicJavaType<T> explicitJavaType, JdbcType explicitJdbcType, Type resolvedJavaType, Supplier<JavaType<T>> reflectedJtdResolver, Function<TypeConfiguration,MutabilityPlan> explicitMutabilityPlanAccess, JdbcTypeIndicators stdIndicators, Table table, Selectable selectable, String ownerName, String propertyName, MetadataBuildingContext buildingContext)
static <T> NamedConverterResolution<T>
NamedConverterResolution. from(String name, Function<TypeConfiguration,BasicJavaType> explicitJtdAccess, Function<TypeConfiguration,JdbcType> explicitStdAccess, Function<TypeConfiguration,MutabilityPlan> explicitMutabilityPlanAccess, JdbcTypeIndicators sqlTypeIndicators, JpaAttributeConverterCreationContext converterCreationContext, MetadataBuildingContext context)
static <T> NamedConverterResolution<T>
NamedConverterResolution. from(ConverterDescriptor converterDescriptor, Function<TypeConfiguration,BasicJavaType> explicitJtdAccess, Function<TypeConfiguration,JdbcType> explicitStdAccess, Function<TypeConfiguration,MutabilityPlan> explicitMutabilityPlanAccess, Type resolvedJavaType, JdbcTypeIndicators sqlTypeIndicators, JpaAttributeConverterCreationContext converterCreationContext, MetadataBuildingContext context)
static <E> VersionResolution<E>
VersionResolution. from(Function<TypeConfiguration,Type> implicitJavaTypeAccess, TimeZoneStorageType timeZoneStorageType, MetadataBuildingContext context)
Constructors in org.hibernate.boot.model.process.internal with parameters of type MetadataBuildingContext Constructor Description NamedBasicTypeResolution(JavaType<J> domainJtd, BasicType basicType, BasicValueConverter valueConverter, Function<TypeConfiguration,MutabilityPlan> explicitMutabilityPlanAccess, MetadataBuildingContext context)
-
Uses of MetadataBuildingContext in org.hibernate.boot.model.source.internal.hbm
Subinterfaces of MetadataBuildingContext in org.hibernate.boot.model.source.internal.hbm Modifier and Type Interface Description interface
HbmLocalMetadataBuildingContext
Access to contextual information specific to ahbm.xml
mapping.Classes in org.hibernate.boot.model.source.internal.hbm that implement MetadataBuildingContext Modifier and Type Class Description class
MappingDocument
Aggregates together information about a mapping document.Methods in org.hibernate.boot.model.source.internal.hbm that return MetadataBuildingContext Modifier and Type Method Description MetadataBuildingContext
CompositeIdentifierSingularAttributeSourceBasicImpl. getBuildingContext()
MetadataBuildingContext
PluralAttributeElementSourceBasicImpl. getBuildingContext()
Methods in org.hibernate.boot.model.source.internal.hbm with parameters of type MetadataBuildingContext Modifier and Type Method Description static ModelBinder
ModelBinder. prepare(MetadataBuildingContext context)
static Class
Helper. reflectedPropertyClass(MetadataBuildingContext buildingContext, Class attributeOwnerClass, String attributeName)
static Class
Helper. reflectedPropertyClass(MetadataBuildingContext buildingContext, String attributeOwnerClassName, String attributeName)
static @org.hibernate.Remove boolean
ModelBinder. useEntityWhereClauseForCollections(MetadataBuildingContext buildingContext)
Deprecated.Interprets the setting "hibernate.use_entity_where_clause_for_collections", which itself is deprecatedConstructors in org.hibernate.boot.model.source.internal.hbm with parameters of type MetadataBuildingContext Constructor Description HbmMetadataSourceProcessorImpl(Collection<Binding<BindableMappingDescriptor>> xmlBindings, MetadataBuildingContext rootBuildingContext)
HbmMetadataSourceProcessorImpl(ManagedResources managedResources, MetadataBuildingContext rootBuildingContext)
MappingDocument(String contributor, JaxbHbmHibernateMapping documentRoot, Origin origin, MetadataBuildingContext rootBuildingContext)
ModelBinder(MetadataBuildingContext context)
RelationalObjectBinder(MetadataBuildingContext buildingContext)
-
Uses of MetadataBuildingContext in org.hibernate.boot.model.source.spi
Subinterfaces of MetadataBuildingContext in org.hibernate.boot.model.source.spi Modifier and Type Interface Description interface
LocalMetadataBuildingContext
Specialization of the MetadataBuildingContext contract specific to a given origin. -
Uses of MetadataBuildingContext in org.hibernate.boot.query
Methods in org.hibernate.boot.query with parameters of type MetadataBuildingContext Modifier and Type Method Description static void
HbmResultSetMappingDescriptor. collectJoinFetch(JaxbHbmNativeQueryJoinReturnType jaxbHbmJoin, Map<String,Map<String,HbmResultSetMappingDescriptor.JoinDescriptor>> joinDescriptors, Map<String,HbmResultSetMappingDescriptor.HbmFetchParent> fetchParentByAlias, String registrationName, MetadataBuildingContext context)
static List<HbmResultSetMappingDescriptor.HbmFetchDescriptor>
HbmResultSetMappingDescriptor. extractPropertyFetchDescriptors(List<JaxbHbmNativeQueryPropertyReturnType> hbmReturnProperties, HbmResultSetMappingDescriptor.HbmFetchParent fetchParent, String registrationName, MetadataBuildingContext context)
-
Uses of MetadataBuildingContext in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi with parameters of type MetadataBuildingContext Modifier and Type Method Description Table
InFlightMetadataCollector. addDenormalizedTable(String schema, String catalog, String name, boolean isAbstract, String subselect, Table includedTable, MetadataBuildingContext buildingContext)
Adds a 'denormalized table' to this repository.Table
InFlightMetadataCollector. addTable(String schema, String catalog, String name, String subselect, boolean isAbstract, MetadataBuildingContext buildingContext)
Adds table metadata to this repository returning the created metadata instance.void
AdditionalMappingContributor. contribute(AdditionalMappingContributions contributions, InFlightMetadataCollector metadata, ResourceStreamLocator resourceStreamLocator, MetadataBuildingContext buildingContext)
Contribute the additional mappingsCollection<MappingDocument>
AdditionalJaxbMappingProducer. produceAdditionalMappings(MetadataImplementor metadata, org.jboss.jandex.IndexView jandexIndex, MappingBinder mappingBinder, MetadataBuildingContext buildingContext)
Deprecated.Method parameters in org.hibernate.boot.spi with type arguments of type MetadataBuildingContext Modifier and Type Method Description void
InFlightMetadataCollector. registerValueMappingResolver(Function<MetadataBuildingContext,Boolean> resolver)
-
Uses of MetadataBuildingContext in org.hibernate.envers.boot.internal
Classes in org.hibernate.envers.boot.internal that implement MetadataBuildingContext Modifier and Type Class Description class
EnversMetadataBuildingContextImpl
Methods in org.hibernate.envers.boot.internal with parameters of type MetadataBuildingContext Modifier and Type Method Description void
AdditionalMappingContributorImpl. contribute(AdditionalMappingContributions contributions, InFlightMetadataCollector metadata, ResourceStreamLocator resourceStreamLocator, MetadataBuildingContext buildingContext)
Collection<MappingDocument>
AdditionalJaxbMappingProducerImpl. produceAdditionalMappings(MetadataImplementor metadata, org.jboss.jandex.IndexView jandexIndex, MappingBinder mappingBinder, MetadataBuildingContext buildingContext)
-
Uses of MetadataBuildingContext in org.hibernate.envers.boot.spi
Subinterfaces of MetadataBuildingContext in org.hibernate.envers.boot.spi Modifier and Type Interface Description interface
EnversMetadataBuildingContext
Metadata building context for Hibernate Envers -
Uses of MetadataBuildingContext in org.hibernate.id
Methods in org.hibernate.id with parameters of type MetadataBuildingContext Modifier and Type Method Description void
ExportableColumn.ValueImpl. createUniqueKey(MetadataBuildingContext context)
-
Uses of MetadataBuildingContext in org.hibernate.mapping
Methods in org.hibernate.mapping that return MetadataBuildingContext Modifier and Type Method Description MetadataBuildingContext
Collection. getBuildingContext()
MetadataBuildingContext
OneToMany. getBuildingContext()
MetadataBuildingContext
SimpleValue. getBuildingContext()
default MetadataBuildingContext
Value. getBuildingContext()
Methods in org.hibernate.mapping with parameters of type MetadataBuildingContext Modifier and Type Method Description static AnyType
MappingHelper. anyMapping(Type metaType, Type identifierType, Map<Object,String> metaValueToEntityNameMap, boolean lazy, MetadataBuildingContext buildingContext)
void
DenormalizedTable. createForeignKeys(MetadataBuildingContext context)
void
Table. createForeignKeys(MetadataBuildingContext context)
void
Collection. createUniqueKey(MetadataBuildingContext context)
void
ManyToOne. createUniqueKey(MetadataBuildingContext context)
void
OneToMany. createUniqueKey(MetadataBuildingContext context)
void
OneToOne. createUniqueKey(MetadataBuildingContext context)
void
SimpleValue. createUniqueKey(MetadataBuildingContext context)
void
Table. createUniqueKey(List<Column> keyColumns, MetadataBuildingContext context)
If there is one given column, mark it unique, otherwise create aUniqueKey
comprising the given columns.void
Table. createUniqueKey(Column column, MetadataBuildingContext context)
Mark the given column unique.void
Value. createUniqueKey(MetadataBuildingContext context)
Identifier
Column. getNameIdentifier(MetadataBuildingContext buildingContext)
static ManyToOneType
MappingHelper. manyToOne(String referencedEntityName, boolean referenceToPrimaryKey, String referencedPropertyName, String propertyName, boolean isLogicalOneToOne, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, MetadataBuildingContext buildingContext)
static OneToOneType
MappingHelper. oneToOne(String referencedEntityName, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String referencedPropertyName, boolean lazy, boolean unwrapProxy, String owningEntityName, String owningEntityPropertyName, boolean constrained, MetadataBuildingContext buildingContext)
boolean
BasicValue. resolve(MetadataBuildingContext buildingContext)
boolean
DependantValue. resolve(MetadataBuildingContext buildingContext)
boolean
Resolvable. resolve(MetadataBuildingContext buildingContext)
static SpecialOneToOneType
MappingHelper. specialOneToOne(String referencedEntityName, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String referencedPropertyName, boolean lazy, boolean unwrapProxy, String owningEntityName, String owningEntityPropertyName, boolean constrained, MetadataBuildingContext buildingContext)
static TimeZoneStorageStrategy
BasicValue. timeZoneStorageStrategy(TimeZoneStorageType timeZoneStorageType, MetadataBuildingContext buildingContext)
-
Uses of MetadataBuildingContext in org.hibernate.processor.validation
Classes in org.hibernate.processor.validation that implement MetadataBuildingContext Modifier and Type Class Description class
MockSessionFactory
class
ProcessorSessionFactory
Implementation of theMock
objects based on standard annotation processor APIs. -
Uses of MetadataBuildingContext in org.hibernate.testing.boot
Classes in org.hibernate.testing.boot that implement MetadataBuildingContext Modifier and Type Class Description class
MetadataBuildingContextTestingImpl
-
Uses of MetadataBuildingContext in org.hibernate.type
Constructors in org.hibernate.type with parameters of type MetadataBuildingContext Constructor Description ComponentType(Component component, int[] originalPropertyOrder, MetadataBuildingContext context)
Deprecated, for removal: This API element is subject to removal in a future version.EmbeddedComponentType(Component component, int[] originalPropertyOrder, MetadataBuildingContext buildingContext)
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of MetadataBuildingContext in org.hibernate.type.spi
Methods in org.hibernate.type.spi that return MetadataBuildingContext Modifier and Type Method Description MetadataBuildingContext
TypeConfiguration. getMetadataBuildingContext()
Deprecated.This operation is not very typesafe, and we're migrating away from its useMethods in org.hibernate.type.spi with parameters of type MetadataBuildingContext Modifier and Type Method Description void
TypeConfiguration. scope(MetadataBuildingContext metadataBuildingContext)
Scope thisTypeConfiguration
to the givenMetadataBuildingContext
.
-