[seam-issues] [JBoss JIRA] (JBSEAM-3857) Include in docs a entity manager flush behavior
Marek Novotny (JIRA)
jira-events at lists.jboss.org
Tue Sep 4 18:30:33 EDT 2012
[ https://issues.jboss.org/browse/JBSEAM-3857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715906#comment-12715906 ]
Marek Novotny commented on JBSEAM-3857:
---------------------------------------
Looking at http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html_single/#objectstate-flushing, there is explicitly written that FlushModeType.Manual is Hibernate extension to JPA and therefore it is ignored if you use SFSB as specification knows only AUTO and COMMIT modes.
I will add this into Seam reference documentation as a warning.
> Include in docs a entity manager flush behavior
> -----------------------------------------------
>
> Key: JBSEAM-3857
> URL: https://issues.jboss.org/browse/JBSEAM-3857
> Project: Seam 2
> Issue Type: Task
> Components: Documentation Issues, EJB3
> Affects Versions: 2.1.1.CR1
> Environment: documentation
> Reporter: Rodrigo Souto
> Assignee: Marek Novotny
> Priority: Optional
> Labels: documentation, ejb3, transaction
> Fix For: 2.3.0.Final
>
> Original Estimate: 3 hours
> Remaining Estimate: 3 hours
>
> Explain on reference doc (chapter 9.2. Seam managed transactions) that even if you are using a manual flush mode in your session bean, the entity manager is flushed before any query.
> http://www.seamframework.org/Community/WhyEjbFunctionIsTryingToFlush
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list