users@glassfish.java.net

Re: JPA - A Complex Relationship Scenario. Help!!!

From: <glassfish_at_javadesktop.org>
Date: Tue, 21 Jul 2009 14:16:38 PDT

> 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