[jboss-user] [EJB 3.0] - Re: Many to Many realtionship question

2009-08-17 Thread Wolfgang Knauf
Hi, you basically need two steps to persist data: 1) create a correct in-memory state 2) persist it It seems that your original use case failed in step 1: the relation has to be defined correct in memory, so that both sides know each other. If step 1 has the correct outcome, step 2 should

[jboss-user] [EJB 3.0] - Re: Many to Many realtionship question

2009-08-13 Thread jaikiran
This wiki https://www.jboss.org/community/wiki/EJB3relationships has good informative explanations on EJB3 entity relationships. See if it covers your case (probably does). View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4249491#4249491 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Many to Many realtionship question

2009-08-13 Thread EladKatz
Hi jaikiran, Thanks for the quick reply, I have actually read this article before and indeed in my implementation I use Sets instead of a Collection as is recommended there. However, that article doesn't address my issue directly though it does say this: anonymous wrote : | For a @ManyToMany