users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Tue, 19 Feb 2008 23:58:26 PST

I'm using Postgres 8.3.0. As you must know, it has sequence support.

If I am understanding JPA correctly, it's impossible to have an one-to-one required association with one object with "sequence-generated" id and the other having the same id. I can't call flush to get id because it's a required association (not null column).
[Message sent by forum member 'leandro_komosinski' (leandro_komosinski)]

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