Skip to content

Commit f198392

Browse files
committed
HHH-8442 certain EntityManager operations (e.g. StoredProcedureQuery.execute()) should rollback the TX for when Runtime exceptions are thrown
1 parent 29ab176 commit f198392

File tree

4 files changed

+111
-89
lines changed

4 files changed

+111
-89
lines changed

hibernate-entitymanager/src/main/java/org/hibernate/jpa/internal/EntityManagerImpl.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ protected Session internalGetSession() {
143143
}
144144
sessionBuilder.autoJoinTransactions( getTransactionType() != PersistenceUnitTransactionType.JTA );
145145
session = sessionBuilder.openSession();
146-
if ( persistenceContextType == PersistenceContextType.TRANSACTION ) {
147-
( (SessionImplementor) session ).setAutoClear( true );
148-
}
149146
}
150147
return session;
151148
}

0 commit comments

Comments
 (0)