I have to map a database column of size NUMBER(13,2).
Use Hibernate 2.0 http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd The mapping I have written is as follows, how will I specify the decimal values ? <property name="salaryAmount" type="java.math.BigDecimal" column="SALARY_AMOUNT" length="13" > <meta attribute="field-description"> @hibernate.property column="SALARY_AMOUNT" length="13" </meta> </property>
I have tried adding the following instead of length, not sure whether this is correct as its compaling that the attributes scale, precision,sql-type should be declared for element property, can some one explain if this correct or is there any issue with this.
scale="13" precision="2" sql-type="number(13,2)"
|