-->
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: Using a genuine GUID for the id element?
PostPosted: Fri May 13, 2005 4:55 pm 
Newbie

Joined: Fri May 13, 2005 4:51 pm
Posts: 12
Hello!

I would like to use a genuine GUID as the type for the id element. I suppose it's possible if I specify the neutral value, i.e. GUID.Empty. What should I precisely do in order to use genuine GUIDs in this way?


Best regards,

Henrik Dahl


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 13, 2005 5:19 pm 
Newbie

Joined: Fri May 13, 2005 3:54 pm
Posts: 6
Location: Istanbul / Turkey
Code:
<id name="UserID" type="System.Guid" column="UserID" unsaved-value="00000000-0000-0000-0000-000000000000">
            <generator class="guid"/>
      </id>


you can use like this ;)

_________________
I am not a great programmer, i am a good programmer with great programming habits.


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.