Browse Source

Consistent references to Hibernate ORM 7.x

pull/36221/head
Juergen Hoeller 2 months ago
parent
commit
80a57c2468
  1. 2
      framework-docs/modules/ROOT/pages/data-access/orm/hibernate.adoc
  2. 3
      spring-orm/src/main/java/org/springframework/orm/jpa/hibernate/LocalSessionFactoryBean.java
  3. 2
      spring-orm/src/main/java/org/springframework/orm/jpa/hibernate/LocalSessionFactoryBuilder.java
  4. 2
      spring-orm/src/main/java/org/springframework/orm/jpa/hibernate/package-info.java

2
framework-docs/modules/ROOT/pages/data-access/orm/hibernate.adoc

@ -14,7 +14,7 @@ As of Spring Framework 7.0, Spring requires Hibernate ORM 7.x for Spring's
`HibernateJpaVendorAdapter`. `HibernateJpaVendorAdapter`.
The `org.springframework.orm.jpa.hibernate` package supersedes the former `orm.hibernate5`: The `org.springframework.orm.jpa.hibernate` package supersedes the former `orm.hibernate5`:
now for use with Hibernate ORM 7.1+, tightly integrated with `HibernateJpaVendorAdapter` now for use with Hibernate ORM 7.x, tightly integrated with `HibernateJpaVendorAdapter`
as well as supporting Hibernate's native `SessionFactory.getCurrentSession()` style. as well as supporting Hibernate's native `SessionFactory.getCurrentSession()` style.
==== ====

3
spring-orm/src/main/java/org/springframework/orm/jpa/hibernate/LocalSessionFactoryBean.java

@ -62,7 +62,7 @@ import org.springframework.core.type.filter.TypeFilter;
* way to set up a shared Hibernate SessionFactory in a Spring application context; the * way to set up a shared Hibernate SessionFactory in a Spring application context; the
* SessionFactory can then be passed to data access objects via dependency injection. * SessionFactory can then be passed to data access objects via dependency injection.
* *
* <p>Compatible with Hibernate ORM 7.1, as of Spring Framework 7.0. * <p>Compatible with Hibernate ORM 7.x, as of Spring Framework 7.0.
* This Hibernate-specific {@code LocalSessionFactoryBean} can be an immediate alternative * This Hibernate-specific {@code LocalSessionFactoryBean} can be an immediate alternative
* to {@link org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean} for * to {@link org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean} for
* common JPA purposes: The Hibernate {@code SessionFactory} will natively expose the JPA * common JPA purposes: The Hibernate {@code SessionFactory} will natively expose the JPA
@ -78,6 +78,7 @@ import org.springframework.core.type.filter.TypeFilter;
* @see HibernateTransactionManager * @see HibernateTransactionManager
* @see LocalSessionFactoryBuilder * @see LocalSessionFactoryBuilder
* @see org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean * @see org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
* @see org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter
*/ */
public class LocalSessionFactoryBean extends HibernateExceptionTranslator public class LocalSessionFactoryBean extends HibernateExceptionTranslator
implements SmartFactoryBean<SessionFactory>, ResourceLoaderAware, BeanFactoryAware, implements SmartFactoryBean<SessionFactory>, ResourceLoaderAware, BeanFactoryAware,

2
spring-orm/src/main/java/org/springframework/orm/jpa/hibernate/LocalSessionFactoryBuilder.java

@ -80,7 +80,7 @@ import org.springframework.util.ClassUtils;
* Typically combined with {@link HibernateTransactionManager} for declarative * Typically combined with {@link HibernateTransactionManager} for declarative
* transactions against the {@code SessionFactory} and its JDBC {@code DataSource}. * transactions against the {@code SessionFactory} and its JDBC {@code DataSource}.
* *
* <p>Compatible with Hibernate ORM 7.1, as of Spring Framework 7.0. * <p>Compatible with Hibernate ORM 7.x, as of Spring Framework 7.0.
* This Hibernate-specific factory builder can also be a convenient way to set up * This Hibernate-specific factory builder can also be a convenient way to set up
* a JPA {@code EntityManagerFactory} since the Hibernate {@code SessionFactory} * a JPA {@code EntityManagerFactory} since the Hibernate {@code SessionFactory}
* natively exposes the JPA {@code EntityManagerFactory} interface as well now. * natively exposes the JPA {@code EntityManagerFactory} interface as well now.

2
spring-orm/src/main/java/org/springframework/orm/jpa/hibernate/package-info.java

@ -6,7 +6,7 @@
* but potentially also for JPA repositories or mixed use of native Hibernate and JPA. * but potentially also for JPA repositories or mixed use of native Hibernate and JPA.
* *
* <p>As of Spring Framework 7.0, this package supersedes {@code orm.hibernate5} - * <p>As of Spring Framework 7.0, this package supersedes {@code orm.hibernate5} -
* now for use with Hibernate ORM 7.1+, tightly integrated with JPA. * now for use with Hibernate ORM 7.x, tightly integrated with JPA.
*/ */
@NullMarked @NullMarked
package org.springframework.orm.jpa.hibernate; package org.springframework.orm.jpa.hibernate;

Loading…
Cancel
Save