[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3225) Remove the flushing flag after flush performExecutions

Emmanuel Bernard (JIRA) noreply at atlassian.com
Mon Apr 7 17:52:33 EDT 2008


Remove the flushing flag after flush performExecutions
------------------------------------------------------

                 Key: HHH-3225
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3225
             Project: Hibernate3
          Issue Type: Bug
          Components: core
         Environment: http://forum.hibernate.org/viewtopic.php?p=2380671#2380671
            Reporter: Emmanuel Bernard


==> session.getPersistenceContext().setFlushing(true); 
try { 
session.getJDBCContext().getConnectionManager().flushBeginning(); 
// we need to lock the collection caches before 
// executing entity inserts/updates in order to 
// account for bidi associations 
session.getActionQueue().prepareActions(); 
session.getActionQueue().executeActions(); 
} 
catch (HibernateException he) { 
log.error("Could not synchronize database state with session", he); 
throw he; 
} 
finally { 
==> session.getPersistenceContext().setFlushing(false); 
session.getJDBCContext().getConnectionManager().flushEnding(); 
} 

Analyze the impact of such a change

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list