Package org.hibernate.metamodel
@Incubating
package org.hibernate.metamodel
This package defines an API for accessing the runtime metamodel describing persistent
entities in Java and their mappings to the relational database schema.
The runtime metamodel may be divided into two layers:
- The domain metamodel, which is an extension of the JPA metamodel and is used in query handling. This layer contains information about Java classes, but not about their mappings to the database.
- The mapping metamodel, which describes the application domain model and its mapping to the database. It is distinct from the JPA metamodel, which does not contain this O/R mapping information.
-
ClassDescriptionAn extended set of
Attribute.PersistentAttributeType
addingAttributeClassification.ANY
Classifications of the plurality.Access to information about the runtime relational O/R mapping model.Enumeration of the built-in ways that Hibernate can represent the application's domain model.Entry point providing access to the runtime metamodels: the domain model, our implementation of the JPA-defined model of the Java types, and our relational mapping model of how these types are made persistent.Indicated a problem with a mapping.At the end of the day, any "value mapping" (id, version, attribute, collection element, etc.) can be one of a few classifications.