-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: uuid.hex
PostPosted: Tue Apr 24, 2007 7:01 am 
Newbie

Joined: Tue Apr 24, 2007 5:33 am
Posts: 1
I wan't to to generate a id with uuid.hex. I dont want to use it in connection with a db. Sounds strange but i have generate 500 such ids and map them with other attributes. How can i generate this id with uuid.hex? I use Eclipse and have implemented the hibernate.jar into the buildpath. Iam a newbie in hibernate. I only need this functionallity.

---edekette


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 24, 2007 9:02 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
Don't understand. Do you want to generate UUIDs as primary keys for a table? If so, <generator class="uuid"/> will do that for you in your primary key mapping. You want to get a UUID outside of the context of persistence? There are many examples on the web of UUID generators. There's one in Hibernate (org.hibernate.id.UUIDHexGenerator).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.