1 Reply Latest reply on Jan 27, 2006 10:50 AM by Bill Burke


    cleonhar Newbie


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

       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?


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