This content has been marked as final.
Show 6 replies
-
1. Re: Creating a number column with 30digits in Oracle
kayamboosuresh Jun 22, 2005 11:01 PM (in response to epbernard)Oops. Thats seems to be not working for int and long. I suppose it is a feature since there is no way the bean can handle the database record if it is not fitting into java data type size. Correct me if I am wrong.
But I wonder why I am not able to set the precision for Float data type also. Is it the same reason? -
2. Re: Creating a number column with 30digits in Oracle
mrhightech Jun 23, 2005 12:11 PM (in response to epbernard)You might want to have a look at BigDecimal and BigNumber to handle large values instead of Integer ?
-
3. Re: Creating a number column with 30digits in Oracle
mrhightech Jun 23, 2005 12:12 PM (in response to epbernard)BigInteger of course, not BigNumber!
-
4. Re: Creating a number column with 30digits in Oracle
leonell Jun 23, 2005 1:59 PM (in response to epbernard)Hi,
may be help you:@Column(name="amount",nullable=false,columnDefinition="decimal(5,2)" )
This code set DB field amount to SQL type decimal(5,2).
You can test it with BigInteger...
Leonell -
5. Re: Creating a number column with 30digits in Oracle
epbernard Jun 23, 2005 2:04 PM (in response to epbernard)@Column(precision = 30) public BigInteger getHuge() { return huge; }
-
6. Re: Creating a number column with 30digits in Oracle
kayamboosuresh Jun 23, 2005 8:53 PM (in response to epbernard)Thanks a lot Leonell and epbernard. It is working now