-->
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: Using precision and scale atributes for integers and floats.
PostPosted: Thu Jan 10, 2008 5:41 am 
Newbie

Joined: Thu Jan 10, 2008 5:31 am
Posts: 1
hi


I wish to limit my database fields for numbers (ints and floats). Iam currently able to limit my fields if they are Strings but not for numbers.
For eg : when i create a type "Cost Price" which is a float in my hbm file and iam trying to use the schema generator and get the DDL , it is by default creating a type like this Cost_Price number(10,0) . Instead i want this to be something like

Cost_Price number(6,2)

Can i make use of the precision and the scale attributes for plain integers and floats?(I know i can use this with Big_integer and Big_decimal.


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.