> Tackle the problem in a different way - create the
> database tables and define all the foreign key
> relationships as well as the composite primary key in
> the join table. You can then reverse engineer the
> JPA classes through Netbeans and see what the
> implementation looks like. You will be surprised at
> how simple the solution is.
Could you please elaborate as to why we might need a composite key in the join table? can we not do it witout composites?
[Message sent by forum member 'digitalsam007' (digitalsam007)]
http://forums.java.net/jive/thread.jspa?messageID=356861