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 100100 * @author Juergen Hoeller
101101 * @since 4.2
102102 * @see #setSessionFactory
103- * @see #setDataSource
104103 * @see SessionFactory#getCurrentSession()
105- * @see DataSourceUtils#getConnection
106- * @see DataSourceUtils#releaseConnection
107104 * @see org.springframework.jdbc.core.JdbcTemplate
108105 * @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
110108 */
111109@ SuppressWarnings ("serial" )
112110public class HibernateTransactionManager extends AbstractPlatformTransactionManager
@@ -271,7 +269,11 @@ public void setPrepareConnection(boolean prepareConnection) {
271269 * @see Connection#setHoldability
272270 * @see ResultSet#HOLD_CURSORS_OVER_COMMIT
273271 * @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}.
274275 */
276+ @ Deprecated
275277 public void setAllowResultAccessAfterCompletion (boolean allowResultAccessAfterCompletion ) {
276278 this .allowResultAccessAfterCompletion = allowResultAccessAfterCompletion ;
277279 }
You can’t perform that action at this time.
0 commit comments