users@glassfish.java.net

GF 2.1b60e breaks backward compatibiliy SEQ_GEN_SEQUENCE bug

From: <glassfish_at_javadesktop.org>
Date: Tue, 10 Feb 2009 16:14:52 PST

Hi,

   I had severals applications running ok on GF2ur2-b04. When I migrate to GF2.1b60e the following problem breaks my apps:

ERROR: relation "seq_gen_sequence" does not exist
STATEMENT: select nextval('SEQ_GEN_SEQUENCE')


  This message appears when I try to persist some entity. All entities are like this

  @Id @GeneratedValue(strategy=GenerationType.AUTO)
    protected Integer id;

I'm using Postgresql 8.3.3

GF's auto generated ids were using a table (not sequence) named 'sequence' in GF2ur2 for new values. Now, the error message suggests that now (with GF2.1) i should have a sequence named 'SEQ_GEN_SEQUENCE'. Is this correct?

   I'll appreciate any help.

   Leandro
[Message sent by forum member 'leandro_komosinski' (leandro_komosinski)]

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