D
davo_java
Hi there!
I'm using Castor V. 0.9.4.3 as Persistence Framework, a Sybase Database
(JConnect JDBC), and BEA WebLogic 8.1.
The problem is: I have several fields defined as NUMERIC(20,2) in DB
Tables. Those fields are defined in Castor Mapping file as:
<field name="tasa" type="big-decimal">
<sql name="tasa" type="numeric" />
</field>
In addition, debuggin my domain objects and business methods, all
object members are defined as BigDecimal with scale=2 and its values
are right, but when the crate(object) method executes, a number like
145.56 is stored as 145.00 in DB.
Can anybody help me?
Thanks a lot!
Dave
I'm using Castor V. 0.9.4.3 as Persistence Framework, a Sybase Database
(JConnect JDBC), and BEA WebLogic 8.1.
The problem is: I have several fields defined as NUMERIC(20,2) in DB
Tables. Those fields are defined in Castor Mapping file as:
<field name="tasa" type="big-decimal">
<sql name="tasa" type="numeric" />
</field>
In addition, debuggin my domain objects and business methods, all
object members are defined as BigDecimal with scale=2 and its values
are right, but when the crate(object) method executes, a number like
145.56 is stored as 145.00 in DB.
Can anybody help me?
Thanks a lot!
Dave