-->
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: Mapping type for MS-SQL Server
PostPosted: Wed Dec 10, 2003 8:02 am 
Newbie

Joined: Wed Dec 10, 2003 7:46 am
Posts: 1
Hi, I'm using Hibernate2.0

What is the mapping type for MS-SQL Server type float in Hibernate ?

I use type mapping of Hibernate type float.
This seems to cause rounding error such as number
423,500,600.00 in Database be returned as 423,500,608.00 by Hibernate query.
Another one is 1,549,832,410.00 in Database returned as 1,549,832,448.00 by Hibernate query.

Thanks for any help!


Top
 Profile  
 
 Post subject: I would upgrade to 2.1 Beta 6
PostPosted: Thu Dec 11, 2003 2:06 pm 
Regular
Regular

Joined: Fri Sep 12, 2003 12:40 pm
Posts: 65
I'd look at using the Hibernate 2.1 Beta 6.

It makes it easier for people to give you feedback since there is a lot of activity on the newer code. It's also feature rich.

That being said, you need to indicate which Dialect you are using (from your hibernate.cfg.xml file)

Then you could check the source: in the net.sf.hibernate.dialect package for the specific class to examine the mapping yourself.

_________________
- Brian


Top
 Profile  
 
 Post subject: Better yet, upgrade to Hibernate 2.1 which is now FINAL
PostPosted: Fri Dec 12, 2003 8:09 pm 
Regular
Regular

Joined: Fri Sep 12, 2003 12:40 pm
Posts: 65
http://prdownloads.sourceforge.net/hibernate/?sort_by=date&sort=desc

_________________
- Brian


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.