[jboss-user] [EJB 3.0] - Re: many-to-many mapping problem

Wolfgang Knauf do-not-reply at jboss.com
Wed Dec 24 05:05:08 EST 2008


Hi,

I think you miss the second line:

i.getVendors().add(v); 
  | ===> i1.getVendors().add(v); 
  | 

And you add "i" twice to the industries-list of your vendor:
l1.add(i);
  | l1.add(i1);
  | v.setIndustries(l1);
  | ===> v.getIndustries().add(i);
  |  

Best regards

Wolfgang

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

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



More information about the jboss-user mailing list