users@glassfish.java.net

Toplink generate wrong name of sequence - SequenceGenerator

From: <glassfish_at_javadesktop.org>
Date: Wed, 11 Apr 2007 06:50:37 PDT

Hi!

I tried it on toplink essentials glassfish-persistence-installer-v2-b41.jar, postgresql 8.0.12.

my code:
@Entity()
@Table(name = "test_person")
public class Person implements Serializable{
@Id()
@SequenceGenerator(name="person_id_seq",sequenceName="person_id_seq")
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="person_id_seq")

I expected the name of sequence "person_id_seq".
Toplink generated "test_person_id_seq".
Parameter sequenceName="person_id_seq" is ignored.

Is it bug or feature?

Thanks
Fafi
[Message sent by forum member 'fafi' (fafi)]

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