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

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


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bernard updated HHH-3225:
----------------------------------

    Affects Version/s: 3.2.6
                       3.3.0.CR1

> 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
>    Affects Versions: 3.2.6, 3.3.0.CR1
>         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