0 Replies Latest reply on Oct 26, 2007 11:46 AM by chen Jianping

    What's the right use of  hibernate_sequences ?

    chen Jianping Newbie

      I want my entitybean use sequence separated.
      I use @GeneratedValue(strategy = GenerationType.TABLE) in my entitybean,
      and I create the hibernate_sequences table in my database ,
      CREATE TABLE hibernate_sequences
      (
      sequence_next_hi_value int8,
      sequence_name varchar(128) NOT NULL,
      CONSTRAINT hibernate_sequences_pkey PRIMARY KEY (sequence_name)
      )
      but I don't know where to find the start number of sequence .what's the right use of hibernate_sequences ?