Package org.hibernate.metamodel.mapping
Defines the runtime mapping metamodel, which describes the mapping
of the application's domain model parts (entities, attributes) to
relational database objects (tables, columns).
- Implementation Specification:
- This entire package is considered incubating at the moment
- Implementation Note:
- Built on top of the
org.hibernate.persister
package.
-
Interface Summary Interface Description AggregatedIdentifierMapping An "aggregated" composite identifier, which is another way to say that the identifier is represented as an embeddable.Association Commonality for an association, mainly details relative to the foreign-keyAttributeMapping Describes an attribute at the mapping model level.AttributeMappingsList This is essentially a List of AttributeMapping(s), but exposing an interface which is more suitable to our needs; in particular it expresses the immutable nature of this structure, and allows us to extend it with additional convenience methods such asAttributeMappingsList.indexedForEach(IndexedConsumer)
.AttributeMappingsMap Similar toAttributeMappingsList
, this is essentially an immutable Map of AttributeMapping(s), allowing iteration of all mappings but also retrieval by name (a String key).AttributeMetadata BasicEntityIdentifierMapping Mapping for a simple, single-column identifierBasicValuedMapping Any basic-typed ValueMapping.BasicValuedModelPart Describes a ModelPart which is a basic value, either aBasic
attribute a basic-valued collection partBindable Contract for things at the domain mapping level that can be bound into a JDBCPreparedStatement
.Bindable.JdbcValuesBiConsumer<X,Y> Functional interface for consuming the JDBC values, along with two values of typeX
andY
.Bindable.JdbcValuesConsumer Functional interface for consuming the JDBC values.CollectionIdentifierDescriptor Descriptor for the collection identifier.CollectionMappingType<C> MappingType descriptor for the collection Java type (List, Set, etc)CollectionPart Hibernate understands mapping a collection into 4 parts The key - the foreign-key defining the association to the owner The element - for Maps this is analogous to the value The index - the List/array index or Map key The collection-id - this is only relevant for id-bag mappingsCompositeIdentifierMapping Mapping for a composite identifierDiscriminable Anything that has a discriminator associated with it.DiscriminatedAssociationModelPart A discriminated association.DiscriminatorMapping Mapping of a discriminator, for either entity or association (ANY) discrimination.DiscriminatorType<O> Union ofConvertedBasicType
andBasicDomainType
capabilities.DiscriminatorValueDetails Details for a particular discriminator value.EmbeddableDiscriminatorMapping Details about the discriminator for an embeddable hierarchy.EmbeddableMappingType Describes an embeddable - the actual typeEmbeddableMappingType.ConcreteEmbeddableType EmbeddableValuedModelPart Describes the mapping of an embeddable (composite).EntityAssociationMapping Commonality between `many-to-one`, `one-to-one` and `any`, as well as entity-valued collection elements and map-keysEntityDiscriminatorMapping Details about the discriminator for an entity hierarchy.EntityIdentifierMapping Describes the mapping of an entity's identifier.EntityMappingType Mapping of an entityEntityMappingType.ConstraintOrderedTableConsumer EntityRowIdMapping Mapping of a row-idEntityValuedModelPart EntityVersionMapping Describes the mapping of an entity's versionFilterRestrictable Things that can have associatedFilter
declarations.ForeignKeyDescriptor Descriptor for foreign-keysForeignKeyDescriptor.Side JdbcMapping Describes the mapping for things which can be expressed in a SQL query.JdbcMappingContainer Container for one-or-more JdbcMappingsManagedMappingType Mapping-model corollary toManagedType
MappingModelCreationLogging Logger used during mapping-model creationMappingModelExpressible<T> Something that can be expressible at the mapping model level.MappingType Common descriptor for types in the mapping model - entities, embeddables, String, Integer, etcModelPart Base descriptor, within the mapping model, for any part of the application's domain model: an attribute, an entity identifier, collection elements, and so on.ModelPart.JdbcValueBiConsumer<X,Y> Functional interface for consuming the JDBC values, along with two values of typeX
andY
.ModelPart.JdbcValueConsumer Functional interface for consuming the JDBC values.ModelPartContainer Access to a group of ModelPart by name or for iteration.NaturalIdLogging Logging related to natural-id operationsNaturalIdMapping Mapping for an entity's natural-id, if one is defined.NonAggregatedIdentifierMapping A "non-aggregated" composite identifier, which means that the entity itself does not define a singular representation of its identifier like an aggregated mapping does.NonAggregatedIdentifierMapping.IdentifierValueMapper Think of an AttributeConverter for id values to account for representation difference between virtual and id-class mappingsNonTransientException Marker interface for exceptions thrown during mapping-model creation which are not transient errors - they will never succeedOwnedValuedModelPart Marker interface for valued model parts that have a declaring/owner type.PluralAttributeMapping Mapping of a plural (collection-valued) attributePluralAttributeMapping.IndexMetadata PluralAttributeMapping.PredicateConsumer PropertyBasedMapping Describes an attribute with a property access.Restrictable SelectableConsumer Consumer used to visit selectable (column/formula) mappingsSelectableMapping Mapping of a selectable (column/formula)SelectableMappings A container for multiple selectable (column, formula) mappings.SingularAttributeMapping Mapping for a singular (non-collection) attribute.SoftDeletableModelPart Model part which can be soft-deletedSoftDeleteMapping Metadata about the indicator column for entities and collections enabled for soft deleteSqlExpressible Unifying contract for things that are capable of being an expression in the SQL AST.SqlTypedMapping Models the type of a thing that can be used as an expression in a SQL queryTableDetails Details about a tableTableDetails.KeyColumn Details about a column within the key groupTableDetails.KeyColumnConsumer TableDetails.KeyDetails Details about the primary key of a tableValuedModelPart Describes a ModelPart that is also a ValueMapping (and therefore also a SelectableMappings).ValueMapping Describes a mapping related to any part of the app's domain model, for example, an attribute, an entity identifier, collection elements, etc.VirtualModelPart Marker interface for parts of the application domain model that do not actually exist in the model classes.WhereRestrictable Things which can haveWhere
declarations - entities and collections -
Class Summary Class Description AssociationKey Used as part of circularity detectionAttributeMappingsMap.Builder DefaultDiscriminatorConverter<O,R> Implements the default discriminator assignment strategy defined by JPA, that is, the discriminator value is the JPA (unqualified) entity name.DiscriminatorConverter<O,R> EmbeddableDiscriminatorConverter<O,R> Handles conversion of discriminator values for embeddable subtype classes to their domain typed form.MappedDiscriminatorConverter<O,R> Conversion of discriminator values between the entity name/Class domain form and its generally CHARACTER or INTEGER based relational formMappingModelHelper SelectableConsumer.MutableSelectableMapping SelectablePath The path for a selectable. -
Enum Summary Enum Description CollectionPart.Nature EntityIdentifierMapping.Nature The style of identifier used.ForeignKeyDescriptor.Nature