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.