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.  [ 3 posts ] 
Author Message
 Post subject: Not dates in Mapping... getting SqlDateTime overflow.
PostPosted: Thu Sep 03, 2009 5:08 pm 
Newbie

Joined: Thu Sep 03, 2009 4:07 pm
Posts: 3
Hi Everyone,

I am trying to SaveOrUpdate an Entity which has not DateTime in it. The mapping file has no DateTime and the Table has no DateTime. However when I run session.Commit I receive an error:

SqlDateTime overflow. Must be between 1/1/1753....

Any ideas why nHibby would be under the impression that it needs to update a date?

Thanks.


Top
 Profile  
 
 Post subject: Re: Not dates in Mapping... getting SqlDateTime overflow.
PostPosted: Thu Sep 03, 2009 6:54 pm 
Newbie

Joined: Thu Sep 03, 2009 4:07 pm
Posts: 3
Looks like the cause was the following:
I used the same session to retrieve entity "A" which had a date and then in the same session, I tried to save entity "B" which had no date. nHibby didn't like that.

Cheers.


Top
 Profile  
 
 Post subject: Re: Not dates in Mapping... getting SqlDateTime overflow.
PostPosted: Fri Sep 04, 2009 12:46 pm 
Newbie

Joined: Thu Sep 03, 2009 4:07 pm
Posts: 3
Interesting, apparently if you Get an object and then try to save/update it in the same session, nHibby throws the date exception....strange.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.