1 Reply Latest reply on Jan 27, 2006 10:50 AM by bill.burke

    IdGenerator

    cleonhar

      Hi.

      I try to generate a uuid Id by using the following code:

      
       @Id
       @GeneratedValue
       @TableGenerator(name="uuid")
       public Long getUid() {
       return uid;
       }
      


      I was expecting, that a uuid is created by using the hibernate uuid algorithm.

      But the created table (in MYSQL) uses a autoincrement to generate the id:

       `uid` bigint(20) NOT NULL auto_increment,
      


      What do I have to do to get a hibernate-uuid?

      Thanks.
      Claus

      PS: I am using Jboss 4.0.4beta from the Repository (I made the build some days ago.)