[jboss-user] [JBoss Seam] - Re: Entities with one/many_to_many relationships and SEAM
do-not-reply at jboss.com
Mon Jul 24 16:06:38 EDT 2006
In my example, adding a flush between the merge and refresh seems to help a lot.
| group = new Group();
| group.setGroupname( newGroupname() );
| orgmobDatabase.persist( group );
| // User owns the bidirectional many-to-many relationship with Group
| user.getGroups().add( group );
| orgmobDatabase.merge( user );
| orgmobDatabase.refresh( group );
Also, after some more reading persistence type PERSIST also seems more appropriate to my needs.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960512#3960512
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960512
More information about the jboss-user