]
Jason Porter commented on SEAMPERSIST-67:
-----------------------------------------
Hantsy, what you have in the example is a bi-directional Many to Many. The only way to
correctly save a bi-directional Many to Many. In that case you *must* set both sides of
the relationship to maintain consistency and avoid corruption. If this were changed to a
unidirectional Many to Many it would work the way you are expecting. This is all plain
JPA, Seam isn't changing any of these
Here are a couple of links to help
*
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: