[
https://issues.jboss.org/browse/SEAMFACES-224?page=com.atlassian.jira.plu...
]
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