users@glassfish.java.net

Re: diferent behaviour between GeneratedType.AUTO and GeneratedType.SEQUENC

From: <glassfish_at_javadesktop.org>
Date: Fri, 15 Feb 2008 18:16:19 PST

You need to add @PrimaryKeyJoinColumn to your OneToOne association to let the provider know that the relationship shares the same PK - see Example 2 under "9.1.23 OneToOne Annotation" in the spec.

Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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