Thread:
 Please add this for ddl generation 
 hari_sujathan   01 Mar 2006, 00:48 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: hari_sujathan (01 Mar 2006, 00:48) Replies: 0, Views: 28516
Subject: Please add this for ddl generation
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
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]