Skip to content

Commit 8cf61c5

Browse files
committed
Added hint towards not using orm.hibernate3 classes with Hibernate 4
Issue: SPR-9365
1 parent 8422da4 commit 8cf61c5

File tree

1 file changed

+5
-3
lines changed
  • org.springframework.orm/src/main/java/org/springframework/orm/hibernate4

1 file changed

+5
-3
lines changed

org.springframework.orm/src/main/java/org/springframework/orm/hibernate4/package-info.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/**
32
*
43
* Package providing integration of
@@ -7,10 +6,13 @@
76
*
87
* <p>Contains an implementation of Spring's transaction SPI for local Hibernate transactions.
98
* This package is intentionally rather minimal, with no template classes or the like,
10-
* in order to follow native Hibernate recommendations as closely as possible.
9+
* in order to follow Hibernate recommendations as closely as possible. We recommend
10+
* using Hibernate's native <code>sessionFactory.getCurrentSession()</code> style.
1111
*
1212
* <p><b>This package supports Hibernate 4.x only.</b>
13-
* See the <code>org.springframework.orm.hibernate3</code> package for Hibernate 3.x support.
13+
* See the {@code org.springframework.orm.hibernate3} package for Hibernate 3.x support.
14+
* <b>Note:</b> Do not use HibernateTemplate or other classes from the hibernate3 package
15+
* with Hibernate 4; this will lead to class definition exceptions at runtime.
1416
*
1517
*/
1618
package org.springframework.orm.hibernate4;

0 commit comments

Comments
 (0)