I'm doing a port to Oracle from SQLServer, some tests have failed due to scale of BigDecimal being different than expected.
So my mapping entry looks like this:
<property
name="nettRate"
type="java.math.BigDecimal"
length="4"
update="true"
insert="true"
column="NettRateNett"
not-null="true"
/>
But when i do a sum of that column, the resulting BigDecimal scale is determined by the value of the summation, not the definition of the column, which i was expecting.
Also interesting is that on sqlserver this is working, although the type is money, I haven't gone back to investigate this further.
|