[jboss-user] [JBoss Seam] - Re: Entities with one/many_to_many relationships and SEAM

petemuir do-not-reply at jboss.com
Mon Jul 24 16:37:27 EDT 2006


Looks like you are on the right track with the persist-flush-refresh sequence. Yep, I think em.persist() would be more suitable.  

If User is the owner I doubt you want CascadeType.ALL on the Group's Set (which you have as Set which I suspect is a typo?).  Perhaps a subset of ALL?

Regarding updates, you can just update an entity, and, assuming cascade is on, it will be merged to the database at the next flush (explicit or implicit at transaction boundary).

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960522#3960522

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960522



More information about the jboss-user mailing list