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.  [ 1 post ] 
Author Message
 Post subject: Avoid NULL value guid field not becomes to Guid.Empty.
PostPosted: Tue Jun 17, 2008 3:44 am 
Newbie

Joined: Tue Sep 06, 2005 4:12 am
Posts: 16
Hibernate version: 1.2.0
DBMS: SQL Server 2000

I found that when I add a new record to the table which has Guid type field (that means uniqueidentifier type in SQL Server), all the null value will be filled by '{00000000-0000-0000-0000-000000000000}' by NHibernate. But I want it leave NULL natually because these Guid fields are the foreign key field that link to other tables. So the field just can be NULL or linkable value which existing on the other tables.

How to do that? Thank you very much.

--
Best regards,
Diviner.


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

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.