Update of /cvsroot/hibernate/Hibernate3/src/org/hibernate/impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12442/src/org/hibernate/impl
Modified Files:
SessionImpl.java
Log Message:
HHH-1410: no auto-flush outside transactions
Index: SessionImpl.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate3/src/org/hibernate/impl/SessionImpl.java,v
retrieving revision 1.178
retrieving revision 1.179
diff -u -d -r1.178 -r1.179
--- SessionImpl.java 1 Feb 2006 19:58:27 -0000 1.178
+++ SessionImpl.java 8 Feb 2006 18:36:45 -0000 1.179
@@ -943,11 +943,10 @@
*/
protected boolean autoFlushIfRequired(Set querySpaces) throws HibernateException {
errorIfClosed();
-// for 3.2
-// if ( ! isTransactionInProgress() ) {
-// // do not auto-flush while outside a transaction
-// return false;
-// }
+ if ( ! isTransactionInProgress() ) {
+ // do not auto-flush while outside a transaction
+ return false;
+ }
AutoFlushEvent event = new AutoFlushEvent(querySpaces, this);
AutoFlushEventListener[] autoFlushEventListener = listeners.getAutoFlushEventListeners();
for ( int i = 0; i < autoFlushEventListener.length; i++ ) {
|