I have tried the latest ojdbc14.jar from Oracle 10g and it does not handle the TIMESTAMP(9) type properly. So that should be removed from the list on
http://www.hibernate.org/383.html. When reengineering a 10g database that has TIMESTAMP(9) types those types are marshalled to java.io.Serializable even if you set the specific type mapping:
<hibernate-reverse-engineering>
<!-- Added by JEEads to take care of TIMESTAMP mapping issue 10/31/08 -->
<type-mapping>
<sql-type jdbc-type="TIMESTAMP" hibernate-type="java.sql.Timestamp" />
<sql-type jdbc-type="NUMERIC" hibernate-type="java.lang.Long" />
<sql-type jdbc-type="DECIMAL" hibernate-type="java.lang.Long" />
<sql-type jdbc-type="VARCHAR" length="1" not-null="true" hibernate-type="java.lang.Character" />
<sql-type jdbc-type="VARCHAR" length="1" hibernate-type="char" />
<sql-type jdbc-type="VARCHAR" hibernate-type="string" />
</type-mapping>
<!-- This file is intentionally generated empty by seam-gen -->
<!-- You can add any filtering/setup you want for your app -->
</hibernate-reverse-engineering>
I have posted a question onto this blog as to how to setup hibernate for the type but have yet to get a respone? I have to believe that someone has reengineered an Oracle 10g database with TIMESTAMP(9) types before. I will try the DataDirect drivers today and report back my findings.
Jerry