[seam-issues] [JBoss JIRA] (SEAMFACES-224) When using hibernate it's always set to manual flush mode in render_response phase, but never changed back

Jason Porter (Commented) (JIRA) jira-events at lists.jboss.org
Tue Dec 6 09:52:40 EST 2011


    [ https://issues.jboss.org/browse/SEAMFACES-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12648402#comment-12648402 ] 

Jason Porter commented on SEAMFACES-224:
----------------------------------------

Code similar to this in the file that has the entity manager producer will work to set the EM to manual flush mode on creation.

{code}   
@Inject
private FlushModeManager flushModeManager;

@Inject
public void setFlushMode() {
    this.flushModeManager.setFlushModeType(FlushModeType.MANUAL);
}{code}

                
> When using hibernate it's always set to manual flush mode in render_response phase, but never changed back
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SEAMFACES-224
>                 URL: https://issues.jboss.org/browse/SEAMFACES-224
>             Project: Seam Faces
>          Issue Type: Bug
>    Affects Versions: 3.0.0.CR1
>            Reporter: Jason Porter
>            Priority: Critical
>             Fix For: 3.1.0.Final
>
>
> In the phase listener we change the flush mode, but don't change it back in other phases. Thus, after the render response if the entitymanager is higher than request scoped it will always be in manual flush mode, this violates least surprise for users.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list