All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.jpa.package-info Maven / Gradle / Ivy

There is a newer version: 6.6.2.Final
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
 */

/**
 * The packages in this namespace are responsible for implementing certain
 * requirements of the JPA specification, especially things which are only
 * needed when Hibernate is acting as a JPA persistence provider.
 * 

* This package contains an * {@linkplain org.hibernate.jpa.HibernatePersistenceProvider implementation} * of a JPA {@link jakarta.persistence.spi.PersistenceProvider}. You may * choose Hibernate as your JPA persistence provider by including the * following line in {@code persistence.xml}: *

{@code org.hibernate.jpa.HibernatePersistenceProvider}
* When working with the Hibernate persistence provider, keep in mind that: *
    *
  • the {@link jakarta.persistence.EntityManagerFactory} is also a * {@link org.hibernate.SessionFactory}, *
  • every {@link jakarta.persistence.EntityManager} is also a * {@link org.hibernate.Session}, and *
  • every {@link jakarta.persistence.Query} is also a * {@link org.hibernate.query.Query}. *
*

* Thus, Hibernate's many powerful extensions to the JPA specification are * always readily accessible. *

    *
  • The subpackage {@link org.hibernate.jpa.boot.spi} contains the SPI of * this persistence provider, including an SPI used to * {@linkplain org.hibernate.jpa.boot.spi.Bootstrap bootstrap} the JPA * provider, and interfaces which may be implemented to contribute extensions * during of the bootstrap process. *
  • The package {@link org.hibernate.jpa.event.spi org.hibernate.jpa.event} * implements support for JPA {@linkplain jakarta.persistence.EntityListeners * event listeners}. *
  • The package {@link org.hibernate.jpa.spi} provides SPIs for managing cases * where Hibernate intentionally violates the JPA specification by default * (something Hibernate only does when it has a really good reason to do so). *
*

* Finally, we have two interfaces which enumerate the JPA * {@linkplain jakarta.persistence.Query#setHint query hints} recognized by * Hibernate: *

    *
  • {@link org.hibernate.jpa.SpecHints} enumerates the standard hints * defined by the JPA specification, and *
  • {@link org.hibernate.jpa.HibernateHints} enumerates hints defined * by Hibernate. *
*/ package org.hibernate.jpa;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy