users@glassfish.java.net

Re: Inheritance problems

From: <glassfish_at_javadesktop.org>
Date: Fri, 18 Jan 2008 10:31:02 PST

Hello,

The Org entity inherits from ObjectItem, and so should share its parents table. This means that any other table references should all be from the OBJ_ITEM to secondary tables, and not the other way around.

Change the @PrimaryKeyJoinColumn
to
  @PrimaryKeyJoinColumn(name="obj_item_id", referencedColumnName="org_id")
to avoid this error.

Best Regards,
Chris
[Message sent by forum member 'chris_delahunt' (chris_delahunt)]

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