I have a problem with the mapping of Oracle Float double precision datatype to Java Double datatype. The hibernate schema validator seems to fail when the Java Double dataty
Unless you define a column type as double precision
in DDL file, Oracle will convert it to float
column type. So you need to register double as float column type in dialect class.
public class Oracle10gDialectExtended extends Oracle10gDialect {
public Oracle10gDialectExtended() {
super();
registerColumnType(Types.DOUBLE, "float");
}
}
Finally register Oracle10gDialectExtended
in Hibernate/JPA configuration as hibernate.dialect
.