-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: hibernatetool hbm2ddl not working java 5 enum
PostPosted: Wed Mar 01, 2006 1:29 pm 
Beginner
Beginner

Joined: Thu Feb 10, 2005 12:23 pm
Posts: 21
hi,
I try to run following ant task. But get error:
<hibernatetool destdir=".">

<classpath refid="project.class.path"/>

<configuration configurationfile="hibernate.cfg.xml" propertyFile="hibernate.properties">


</configuration>
<hbm2ddl/>

</hibernatetool>




Error states that EnumUserType is not recognized.
The way I am trying to map enum is as per this: http://www.hibernate.org/272.html

For me hibernatesynchronizer does generate DDL for same mapping file having enum. But not able to generate with ant task.
Can anyone tell how ant task has to be called for doing hbm2ddl similar to hybernatesynchronizer.

Thanks,
Hari


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 01, 2006 1:59 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what is the stacktrace ?

did you include that usertype in the <classpath> of the <hibernatetool> ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.