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: set decimal Digits with annotaions (oracle)
PostPosted: Thu Sep 07, 2006 3:44 am 
Beginner
Beginner

Joined: Tue Nov 22, 2005 5:33 am
Posts: 31
I have a property:
private double property1;

with getters and setters, basic annotation.
I use hbm2ddl to create the tables, but the column for this property get decimal_digits <null>. (If decimal_digits is null and I try to insert the value 0,12345 the value becomes 0)

If I add annotations like: @Column(precision=5), nothing happens.

I tried changing to float instead of double, nothing happens.

Can I add something to my hibernate.cfg.xml to set default decimal digits or something?

_________________
Emil
Don't forget to rate, I'm desperate!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 07, 2006 3:47 am 
Beginner
Beginner

Joined: Tue Nov 22, 2005 5:33 am
Posts: 31
Another thing I forgot, the datatype of the column is FLOAT. not NUMBER

_________________
Emil
Don't forget to rate, I'm desperate!


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.