4 Replies Latest reply on Nov 8, 2012 8:14 AM by nimo stephan

    Explicit segment value for id generator suggested

    nimo stephan Master

      I have something like this:

       

      {code}

      @Id

      @TableGenerator(name="USER", table="MY_ID_GEN")

      @GeneratedValue(strategy=GenerationType.TABLE, generator="USER")

      private Integer idUser;

      {code}

       

      You see, I declared a @TableGenerator and NOT a @SequenceGenerator.

      JBOSS AS (with create-drop) successfully creates the TableGenerator and I can use it.

       

      However, the log file of Jboss AS shows this:

      [org.hibernate.id.enhanced.TableGenerator] (MSC service thread 1-3) HHH000398: Explicit segment value for id generator [MY_ID_GEN.sequence_name] suggested; using default [USER]

       

      What does this mean? How can I set the sequence_name or the segment value?