-->
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.  [ 6 posts ] 
Author Message
 Post subject: Problem in inserting Date Filed into the database
PostPosted: Mon Feb 13, 2006 5:49 am 
Newbie

Joined: Fri Feb 10, 2006 3:24 am
Posts: 5
Location: India
I am using NHibernate Vresion 1.0.2.0 and i am using Nullables for this date field when i try to save the current date it post irrelavent date in the database but when i debug i can see the correct value after that it convert in to someother date can i know the sloution to rectifiy this issue.


Top
 Profile  
 
 Post subject: Re: Problem in inserting Date Filed into the database
PostPosted: Mon Feb 13, 2006 7:04 am 
Senior
Senior

Joined: Fri Jan 13, 2006 2:50 pm
Posts: 123
Location: Blumenau / SC / Brasil
D.Balachandar wrote:
I am using NHibernate Vresion 1.0.2.0 and i am using Nullables for this date field when i try to save the current date it post irrelavent date in the database but when i debug i can see the correct value after that it convert in to someother date can i know the sloution to rectifiy this issue.


Are you trying this: http://forum.hibernate.org/viewtopic.php?t=955398

I'm using with MySQL and that's ok.


Top
 Profile  
 
 Post subject: Re: Problem in inserting Date Filed into the database
PostPosted: Mon Feb 13, 2006 7:09 am 
Newbie

Joined: Fri Feb 10, 2006 3:24 am
Posts: 5
Location: India
i am using SQLServer 2000 its not posting the value which i have given it takes a default value


Top
 Profile  
 
 Post subject: Re: Problem in inserting Date Filed into the database
PostPosted: Mon Feb 13, 2006 7:56 am 
Senior
Senior

Joined: Fri Jan 13, 2006 2:50 pm
Posts: 123
Location: Blumenau / SC / Brasil
D.Balachandar wrote:
i am using SQLServer 2000 its not posting the value which i have given it takes a default value


Hum.. and SQL Server doesn't have a default value for null fields? I don't know, I've never used SQL Server.. :(


Top
 Profile  
 
 Post subject: Re: Problem in inserting Date Filed into the database
PostPosted: Mon Feb 13, 2006 8:00 am 
Newbie

Joined: Fri Feb 10, 2006 3:24 am
Posts: 5
Location: India
I got it taking some old reference i changed it now its working fine


Top
 Profile  
 
 Post subject: Re: Problem in inserting Date Filed into the database
PostPosted: Mon Feb 13, 2006 8:37 am 
Senior
Senior

Joined: Fri Jan 13, 2006 2:50 pm
Posts: 123
Location: Blumenau / SC / Brasil
D.Balachandar wrote:
I got it taking some old reference i changed it now its working fine


Have you changed what? The SQL Server config?

thanks.


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