We have investigated this and found that the new DataDirectOracle9Dialect, provided by Hibernate, does not include a mapping for the DECIMAL data type. The DataDirect Oracle driver describes some columns using this data type. The workaround is to add the following constructor to the DataDirectOracle9Dialect
Code:
public DataDirectOracle9Dialect() {
super();
registerColumnType( Types.DECIMAL, "number($p,$s)" );
registerHibernateType(Types.DECIMAL, "big_decimal");
}
We will work with Hibernate to get this included in a future update to Hibernate.
BTW, I believe the DataDirectOracle9Dialect is new in Hibernate 3.1.3