-->
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: Need tell NHibernate that an Int32 property should be dbnull
PostPosted: Thu Jun 23, 2005 1:00 pm 
I'm working with a child table that doesn't need to load the full parent, it only needs to know the id. If the child object is assigned a valid foreign key, it works fine. The issue is that the foreign key property can be null in the datasource. How do I let NHibernate know that a zero value is saved as dbnull? Or is there a better way to map it then using a simple <property> tag?


Top
  
 
 Post subject:
PostPosted: Thu Jun 23, 2005 1:06 pm 
Regular
Regular

Joined: Mon May 16, 2005 2:15 pm
Posts: 59
I think you will have to use a NullableInt32 type from NHibernateContrib.


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.