I had to make following change in hbm.xml so that hibernate
synchronizer generates DDL for me.
<property name='suit' type="java.lang.String">
<column name="suitType" length="30"/>
<type name="EnumUserType">
<param name="enumClassName">com.company.project.Suit</param>
</type>
</property>
with original mapping file entry shown at top, hibernate synchroniser
was not generating DDL, and I had to manually modify DDL after
generating it with enum property commented out.
Rgds,
Hari Sujathan |