[jboss-user] [EJB 3.0] - many to many mapping problem
mravikrish
do-not-reply at jboss.com
Fri Mar 20 03:41:53 EDT 2009
Hi,
This is Ramu, i am having a problem with many to many mapping. i am havig two tables vendor and skills(many - to many).
Vendor pojo class:
private Collection skills = new ArrayList();
@ManyToMany()
@JoinTable(name = "VENDORSKILLS")
getter and setter follows............
.........................
Skill pojo class
private Collection vendors = new ArrayList();
@ManyToMany(mappedBy="skills",cascade={CascadeType.ALL})
getter and setter follows............
.........................
Now join table VENDORSKILLS is having colums like vendor_Id and skill_Id
Now I want to have one extra column like skilllevel .How to create skilllevel column in join table VENDORSKILLS .
And how to persist it.
Thanks&Regards
K.Ramu
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219715#4219715
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219715
More information about the jboss-user
mailing list