Hibernate version: 2.1
Name and version of the database you are using: Oracle 10.1.0
When using SchemaExportTask, property type "timestamp" is interpreted as date(7). Due to this interpretation milliseconds values are "zeroed" in my db. However If I modify schema-export.sql before running it by hand changing date(7) to timestamp(9) everything works just fine.
I've looked into Oracle9Dialect class and found following line: registerColumnType( Types.TIMESTAMP, "date" );
I would replace it with following line: registerColumnType( Types.TIMESTAMP, "timestamp(9)" );
Should I modify the source or is there a better way to solve this problem?
|