users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Tue, 21 Jul 2009 14:06:28 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.
[Message sent by forum member 'ggierer' (ggierer)]

http://forums.java.net/jive/thread.jspa?messageID=356857