users@glassfish.java.net

Re: GF 2.1b60e breaks backward compatibiliy SEQ_GEN_SEQUENCE bug

From: <glassfish_at_javadesktop.org>
Date: Wed, 11 Feb 2009 10:41:08 PST

Please make sure that you are not using @GeneratedValue(strategy=GenerationType.SEQUENCE) - that would cause this error.
If you are using identity then use
 @GeneratedValue(strategy=GenerationType.IDENTITY) instead.
I can't see how using @GeneratedValue(strategy=GenerationType.AUTO) may cause attempt to use sequence object SEQ_GEN_SEQUENCE, unless you define a SequenceGenerator named SEQ_GEN which uses sequenceName SEQ_GEN_SEQUENCE.
[Message sent by forum member 'ailitche' (ailitche)]

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