File tree Expand file tree Collapse file tree 7 files changed +12
-12
lines changed
framework-docs/modules/ROOT/pages/data-access/orm
spring-orm/src/main/java/org/springframework/orm/jpa Expand file tree Collapse file tree 7 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ cover the other ORM technologies and show brief examples.
10
10
11
11
[NOTE]
12
12
====
13
- As of Spring Framework 7.0, Spring requires Hibernate ORM 7.0 for Spring's
14
- `HibernateJpaVendorAdapter` as well as for a native Hibernate `SessionFactory` setup .
13
+ As of Spring Framework 7.0, Spring requires Hibernate ORM 7.x for Spring's
14
+ `HibernateJpaVendorAdapter`.
15
15
16
16
The `org.springframework.orm.jpa.hibernate` package supersedes the former `orm.hibernate5`:
17
- now for use with Hibernate ORM 7.0 , tightly integrated with `HibernateJpaVendorAdapter`
17
+ now for use with Hibernate ORM 7.1+ , tightly integrated with `HibernateJpaVendorAdapter`
18
18
as well as supporting Hibernate's native `SessionFactory.getCurrentSession()` style.
19
19
====
20
20
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ dependencies {
124
124
api(" org.glassfish:jakarta.el:4.0.2" )
125
125
api(" org.graalvm.sdk:graal-sdk:22.3.1" )
126
126
api(" org.hamcrest:hamcrest:3.0" )
127
- api(" org.hibernate.orm:hibernate-core:7.0.5 .Final" )
127
+ api(" org.hibernate.orm:hibernate-core:7.1.0 .Final" )
128
128
api(" org.hibernate.validator:hibernate-validator:9.0.1.Final" )
129
129
api(" org.hsqldb:hsqldb:2.7.4" )
130
130
api(" org.htmlunit:htmlunit:4.13.0" )
Original file line number Diff line number Diff line change 62
62
* way to set up a shared Hibernate SessionFactory in a Spring application context; the
63
63
* SessionFactory can then be passed to data access objects via dependency injection.
64
64
*
65
- * <p>Compatible with Hibernate ORM 7.0 , as of Spring Framework 7.0.
65
+ * <p>Compatible with Hibernate ORM 7.1 , as of Spring Framework 7.0.
66
66
* This Hibernate-specific {@code LocalSessionFactoryBean} can be an immediate alternative
67
67
* to {@link org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean} for
68
68
* common JPA purposes: The Hibernate {@code SessionFactory} will natively expose the JPA
@@ -109,7 +109,7 @@ public class LocalSessionFactoryBean extends HibernateExceptionTranslator
109
109
110
110
private @ Nullable MultiTenantConnectionProvider <?> multiTenantConnectionProvider ;
111
111
112
- private @ Nullable CurrentTenantIdentifierResolver <Object > currentTenantIdentifierResolver ;
112
+ private @ Nullable CurrentTenantIdentifierResolver <? > currentTenantIdentifierResolver ;
113
113
114
114
private @ Nullable Properties hibernateProperties ;
115
115
@@ -295,7 +295,7 @@ public void setMultiTenantConnectionProvider(MultiTenantConnectionProvider<?> mu
295
295
* Set a {@link CurrentTenantIdentifierResolver} to be passed on to the SessionFactory.
296
296
* @see LocalSessionFactoryBuilder#setCurrentTenantIdentifierResolver
297
297
*/
298
- public void setCurrentTenantIdentifierResolver (CurrentTenantIdentifierResolver <Object > currentTenantIdentifierResolver ) {
298
+ public void setCurrentTenantIdentifierResolver (CurrentTenantIdentifierResolver <? > currentTenantIdentifierResolver ) {
299
299
this .currentTenantIdentifierResolver = currentTenantIdentifierResolver ;
300
300
}
301
301
Original file line number Diff line number Diff line change 80
80
* Typically combined with {@link HibernateTransactionManager} for declarative
81
81
* transactions against the {@code SessionFactory} and its JDBC {@code DataSource}.
82
82
*
83
- * <p>Compatible with Hibernate ORM 7.0 , as of Spring Framework 7.0.
83
+ * <p>Compatible with Hibernate ORM 7.1 , as of Spring Framework 7.0.
84
84
* This Hibernate-specific factory builder can also be a convenient way to set up
85
85
* a JPA {@code EntityManagerFactory} since the Hibernate {@code SessionFactory}
86
86
* natively exposes the JPA {@code EntityManagerFactory} interface as well now.
@@ -261,7 +261,7 @@ public LocalSessionFactoryBuilder setMultiTenantConnectionProvider(MultiTenantCo
261
261
* @see AvailableSettings#MULTI_TENANT_IDENTIFIER_RESOLVER
262
262
*/
263
263
@ Override
264
- public LocalSessionFactoryBuilder setCurrentTenantIdentifierResolver (CurrentTenantIdentifierResolver <Object > currentTenantIdentifierResolver ) {
264
+ public LocalSessionFactoryBuilder setCurrentTenantIdentifierResolver (CurrentTenantIdentifierResolver <? > currentTenantIdentifierResolver ) {
265
265
getProperties ().put (AvailableSettings .MULTI_TENANT_IDENTIFIER_RESOLVER , currentTenantIdentifierResolver );
266
266
super .setCurrentTenantIdentifierResolver (currentTenantIdentifierResolver );
267
267
return this ;
Original file line number Diff line number Diff line change 6
6
* but potentially also for JPA repositories or mixed use of native Hibernate and JPA.
7
7
*
8
8
* <p>As of Spring Framework 7.0, this package supersedes {@code orm.hibernate5} -
9
- * now for use with Hibernate ORM 7.0 , tightly integrated with JPA.
9
+ * now for use with Hibernate ORM 7.1+ , tightly integrated with JPA.
10
10
*/
11
11
@ NullMarked
12
12
package org .springframework .orm .jpa .hibernate ;
Original file line number Diff line number Diff line change 42
42
43
43
/**
44
44
* {@link org.springframework.orm.jpa.JpaDialect} implementation for Hibernate.
45
- * Compatible with Hibernate ORM 7.0 .
45
+ * Compatible with Hibernate ORM 7.x .
46
46
*
47
47
* @author Juergen Hoeller
48
48
* @author Costin Leau
Original file line number Diff line number Diff line change 41
41
42
42
/**
43
43
* {@link org.springframework.orm.jpa.JpaVendorAdapter} implementation for Hibernate.
44
- * Compatible with Hibernate ORM 7.0 .
44
+ * Compatible with Hibernate ORM 7.x .
45
45
*
46
46
* <p>Exposes Hibernate's persistence provider and Hibernate's Session as extended
47
47
* EntityManager interface, and adapts {@link AbstractJpaVendorAdapter}'s common
You can’t perform that action at this time.
0 commit comments