users@glassfish.java.net

Re: Foreign key not being created in child entity

From: <glassfish_at_javadesktop.org>
Date: Mon, 16 Apr 2007 13:32:04 PDT

> Hi,
>
> JPA recommends to always maintain relationships on
> both sides. In your
> case, please also set the relationship on the Payee
> side.

Isn't that what I'm doing by doing the following ?

> public abstract class Payee implements Serializable {
> @ManyToOne
> @JoinColumn(name = "CLAIMANT_ID")
> private Claimant claimant;
[Message sent by forum member 'jeffmutonho' (jeffmutonho)]

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