[seam-issues] [JBoss JIRA] (SEAMPERSIST-67) LazyInitializationException threw when persist a Many to Many collection of an entity.
hantsy bai (Commented) (JIRA)
jira-events at lists.jboss.org
Tue Nov 8 07:30:45 EST 2011
[ https://issues.jboss.org/browse/SEAMPERSIST-67?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641040#comment-12641040 ]
hantsy bai commented on SEAMPERSIST-67:
---------------------------------------
I created a project on github.com to reproduce this issue.
https://github.com/hantsy/seam3-sandbox
Deploy to jboss 7 and open http://localhost:8080/seam3-sandbox-1.0.0-SNAPSHOT/posts.xhtml in ur browser.
There are four buttons to save post.
create --> no @Transactional, no "em.flush" in method.
create 2--> has @Transactional, no "em.flush" in method.
create 3--> no @Transactional, has "em.flush" in method.
create 4--> has @Transactional, has "em.flush" in method.
When new a post, the first two can not save post, and I can not save the manytomany relations(Post and Tag).
When edit the post...the exception will be thrown.
> LazyInitializationException threw when persist a Many to Many collection of an entity.
> --------------------------------------------------------------------------------------
>
> Key: SEAMPERSIST-67
> URL: https://issues.jboss.org/browse/SEAMPERSIST-67
> Project: Seam Persistence
> Issue Type: Bug
> Environment: Java 6 update 27, Seam 3.1.0Beta2, JBoss 7.0.1.Final
> Reporter: hantsy bai
> Priority: Critical
>
> I tried a saved a many to many relation(multicheckbox), but failed.
> But in before seam 2 application, I used like this, never encounter such a problem.
> I used Seam managed Persistence, and added TransactionIntercepter in the beans.xml.
> Please refer the discussion in the forum.
--
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