users@glassfish.java.net

Re: Toplink generate wrong name of sequence - SequenceGenerator

From: <glassfish_at_javadesktop.org>
Date: Wed, 11 Apr 2007 12:44:51 PDT

TopLink makes no difference between SEQUENCE and IDENTITY strategies (think about it as SEQUENCE-IDENTITY).
That allows the code annotated with these strategies run unchanged on Oracle (which supports Sequences but not Identity) and SyBase (vice versa).
The platforms that support both approaches have to choose one of them.

PostgreSQLPlatform chose to support Identity (indicated by shouldNativeSequenceAcquireValueAfterInsert method returning true).

For identity support PostgreSql apparently uses sequences with pre-defined names - that's exactly what's happening in your case.
[Message sent by forum member 'ailitche' (ailitche)]

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