users@glassfish.java.net

Re: JPA sequences making up weird numbers when migrating to GlassFish 2.1

From: <glassfish_at_javadesktop.org>
Date: Thu, 21 May 2009 06:14:10 PDT

Because your table uses identity ("SERIAL") you should have used IDENTITY from the very start.
The motivation behind SEQUENCE and IDENTITY doing the same thing was to allow people to switch between platforms that support only SEQUENCE (like Oracle) and only IDENTITY (like SyBase) without having to alter their code.
[Message sent by forum member 'ailitche' (ailitche)]

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