From 7f5e80145d8b9160f4f4d38dac34a1e4b0f214fb Mon Sep 17 00:00:00 2001
From: Gavin King SessionFactory
extends EntityManagerFactory
, and
Session
extends EntityManager
.
+ It's always possible to fall back from JPA interfaces to native APIs, by calling + {@link jakarta.persistence.EntityManager#unwrap entityManager.unwrap(Session.class)}, + {@link jakarta.persistence.EntityManagerFactory#unwrap entityManagerFactory.unwrap(SessionFactory.class)}, + or {@link jakarta.persistence.Query#unwrap query.unwrap(Query.class)}. In certain cases + it's also possible to access native functionality by passing a + {@linkplain org.hibernate.jpa.SpecHints JPA-defined} or + {@linkplain org.hibernate.jpa.HibernateHints Hibernate-defined} hint, at the cost of a + loss of type-safety. +
++ These packages define additional extensions to the JPA APIs: +
++ The annotations defined by {@link org.hibernate.annotations.processing} instruct the Metamodel + Generator to {@linkplain org.hibernate.annotations.processing.CheckHQL validate HQL at compile + time}, and to automatically generate the implementation of + {@linkplain org.hibernate.annotations.processing.Find finder methods} and + {@linkplain org.hibernate.annotations.processing.HQL query methods}. +
+
diff --git a/release/src/release/javadoc/overview.html b/release/src/release/javadoc/overview.html index eb6ed96692..0cdf87796e 100644 --- a/release/src/release/javadoc/overview.html +++ b/release/src/release/javadoc/overview.html @@ -19,11 +19,14 @@
SessionFactory
extends EntityManagerFactory
, and
Session
extends EntityManager
.
++ It's always possible to fall back from JPA interfaces to native APIs, by calling + {@link jakarta.persistence.EntityManager#unwrap entityManager.unwrap(Session.class)}, + {@link jakarta.persistence.EntityManagerFactory#unwrap entityManagerFactory.unwrap(SessionFactory.class)}, + or {@link jakarta.persistence.Query#unwrap query.unwrap(Query.class)}. In certain cases + it's also possible to access native functionality by passing a + {@linkplain org.hibernate.jpa.SpecHints JPA-defined} or + {@linkplain org.hibernate.jpa.HibernateHints Hibernate-defined} hint, at the cost of a + loss of type-safety. +
++ These packages define additional extensions to the JPA APIs: +
++ The annotations defined by {@link org.hibernate.annotations.processing} instruct the Metamodel + Generator to {@linkplain org.hibernate.annotations.processing.CheckHQL validate HQL at compile + time}, and to automatically generate the implementation of + {@linkplain org.hibernate.annotations.processing.Find finder methods} and + {@linkplain org.hibernate.annotations.processing.HQL query methods}. +
+