Hello ,
I was able to do the jpa many to many example (
http://jpa.ezhibernate.com/Javacode/learn.jsp?tutorial=19mappingmanytomanyrelationships )
Thanks Cameron for the same .
However I am totally confused regarding how I should go about doing the same when I have an extra column in the Join Table
I know I would need to create a new
Java Object for this join table
As an example ( Emp , Address , EmpAddress as three tables and Java Objects )
Should the Emp to Address & Address to Emp be mapped as a One to Many ?
Should the EmpAddress bean contain a Set for both Emp & Address and have this as a ManyToOne association ?
Thanks,
~satish
[ July 11, 2008: Message edited by: satish bodas ]