-->
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.  [ 1 post ] 
Author Message
 Post subject: uniqie-key on column of type float adds random number to end
PostPosted: Thu Sep 23, 2004 2:11 pm 
Regular
Regular

Joined: Thu Sep 23, 2004 11:53 am
Posts: 83
This is the XML....

<property name="A" type="date">
<column name="A" not-null="true" unique-key="UNQ"/>
</property>
<property name="B" type="float">
<column name="B" not-null="true" unique-key="UNQ"/>
</property>
<property name="C" type="float" not-null="true"/>




my code is....

s.save(new MyClass(new Date(), 1.1f, 1.1f);

HSQLDB shows column Bs value as 1.100000023841858 and column Cs value (which is not part of a unique key constraint) is 1.1.

Any ideas?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.