File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
spring-orm/src/main/java/org/springframework/orm/hibernate5 Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 100
100
* @author Juergen Hoeller
101
101
* @since 4.2
102
102
* @see #setSessionFactory
103
- * @see #setDataSource
104
103
* @see SessionFactory#getCurrentSession()
105
- * @see DataSourceUtils#getConnection
106
- * @see DataSourceUtils#releaseConnection
107
104
* @see org.springframework.jdbc.core.JdbcTemplate
108
105
* @see org.springframework.jdbc.support.JdbcTransactionManager
109
- * @see org.springframework.transaction.jta.JtaTransactionManager
106
+ * @see org.springframework.orm.jpa.JpaTransactionManager
107
+ * @see org.springframework.orm.jpa.vendor.HibernateJpaDialect
110
108
*/
111
109
@ SuppressWarnings ("serial" )
112
110
public class HibernateTransactionManager extends AbstractPlatformTransactionManager
@@ -271,7 +269,11 @@ public void setPrepareConnection(boolean prepareConnection) {
271
269
* @see Connection#setHoldability
272
270
* @see ResultSet#HOLD_CURSORS_OVER_COMMIT
273
271
* @see #disconnectOnCompletion(Session)
272
+ * @deprecated as of 5.3.29 since Hibernate 5.x aggressively closes ResultSets on commit,
273
+ * making it impossible to rely on ResultSet holdability. Also, Spring does not provide
274
+ * an equivalent setting on {@link org.springframework.orm.jpa.JpaTransactionManager}.
274
275
*/
276
+ @ Deprecated
275
277
public void setAllowResultAccessAfterCompletion (boolean allowResultAccessAfterCompletion ) {
276
278
this .allowResultAccessAfterCompletion = allowResultAccessAfterCompletion ;
277
279
}
You can’t perform that action at this time.
0 commit comments