-->
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: Cannot enter Null Values to DateTime fields using Nhibernate
PostPosted: Wed Jan 18, 2006 1:11 am 
Beginner
Beginner

Joined: Mon Oct 17, 2005 1:58 am
Posts: 27
I have a datetime field with not-null=false.But while entering data if i don't enter a datetime value for that field it gives SQL datetime exception 'Datetime field must be between 1/1/1900...'

Also when I delete a record it is not able to update by cascade those tables which have null values in datetime fields.

Can anyone tell me why this happens and how I cansolve this problem?


Thanks.....


Top
 Profile  
 
 Post subject: Use the Nullables library
PostPosted: Wed Jan 18, 2006 1:51 am 
Regular
Regular

Joined: Tue Jan 03, 2006 7:21 am
Posts: 85
In order to handle this you have to use the Nullables library, please read the documentation on how to use this.


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.