Max, .. the trick was Great. (adding the dependency to the tooling classpath) solved the problem with the usertype. Question: Does the trick also applies to the following ?
Code:
<property column="UPDATE_DATE" length="11" name="updateDate" not-null="true"
type="java.sql.Timestamp">
<meta attribute="use-in-tostring">true</meta>
<meta attribute="default-value">new java.util.Date()</meta>
</property>
Here the java.sql.timestamp is from Sun's
jav2sdk1.4.2/jre/lib/rt.jar. I added the rt.jar to the tooling classpath but I dont think hibernate is loading the class as it did for CustomUserType and produces the following code in pojo.
Code:
protected Timestamp updateDate = new java.util.Date();
Causing the following error:
Code:
/home/esyed/hibernate-migration/components/taxonomy/target/generated-src/hbm2java/com/company/portal/taxonomy/model/Link.java:[26,38] incompatible types
found : java.util.Date
required: java.sql.Timestamp
In
Hibernate-2, the same mapping snippet resulted in
Code:
protected Date updateDate = new java.util.Date();
I hope you have some trick that can solve this issue too..