Hibernate version: 3.1rc3; jdk 1.4.2_06
SchemaExport (hbm2ddl) takes a BigIntegerType and makes it numeric(19,2) for the DB2 (and DB2400) dialects. Should be (n,0) I would think. For HSQL it's just "numeric".
Mapping documents:
Code:
<property name="TestNonNegInteger">
<column name="TestNonNegInteger"/>
<type name="org.hibernate.type.BigIntegerType"/>
</property>
SQL: Code:
create table Test1 (..., TestNonNegInteger numeric(19,2), ...);
I'm actually using a hyperJaxb2 ant script to run this, but for this particular step, I believe only hibernate (SchemaExportTask) is involved.
I looked at the hbm2ddl code briefly, but couldn't figure out where the default scale of 2 was coming from.
any ideas?