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.)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920033#3920033

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920033


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to