users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Thu, 23 Jul 2009 10:23:09 PDT

Hello friend,

Tried following your instructions and created the tables as mentioned by you. Made sure that the PK and FKs are correct. I gave the join tables name as MENTOR_TOPIC and made a composite keys (id_user, id_mentor, id_topic) . I have also set FK constraints for all the fields to respective columns in the primary tables.

Now, when I use the JPA Tools that comes with Eclipse JEE version to create the Entities from the Database tables, I get the following error message -

An internal error has occurred during: "Generating Entities"
MENTOR_TOPIC.FK_Constraint_1 - mismatched sizes: 0 vs. 1

Can you tell me if I am missing something?
[Message sent by forum member 'digitalsam007' (digitalsam007)]

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