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 12:31:22 PST

Thanks again!

   If i use

@Entity
public class Car {

  @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="car_id_seq")
  @Id
  Integer id;

   ...
}
 then Toplink uses the sequence named 'car_id_seq'. It's not necessary to use @SequenceGenerator is this case.
[Message sent by forum member 'leandro_komosinski' (leandro_komosinski)]

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