-->
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> type doesn't support the nested "
PostPosted: Tue Sep 20, 2005 4:47 am 
Newbie

Joined: Thu Feb 03, 2005 11:36 am
Posts: 11
Hibernate version: 3.0.5 - Latest alpha tools

Hello, I successfully generate POJO classes from .hbm files with an build.xml ant script, so <hbm2java/> works perfectly.

BUT, I have a problem with the <hbm2dll/> - Using it produce the error :
The <hibernatetool> type doesn't support the nested "hbm2dll" element.

I Followed the doc from http://www.hibernate.org/hib_docs/tools/ant/index.html and <hbm2dll> should be recognized...

What's wrong ?

Thank you

Here is the relevant part of the build file :

<path id="hibernatetools.classpath">
<fileset dir="D:\JavaDev/Databases/hibernate-tools-3.1.0.alpha5">
<include name="**/hibernate-tools.jar"/>
<include name="**/velocity-1.4.jar"/>
<include name="**/velocity-tools-generic-1.1.jar"/>
<include name="**/jtidy-r8-21122004.jar"/>
</fileset>
<fileset dir="${lib.dir}">
<include name="**/mysql-connector-java-3.1.10-bin.jar"/>
<include name="**/commons-logging-1.0.4.jar"/>
<include name="**/dom4j-1.6.jar"/>
<include name="**/commons-collections-2.1.1.jar"/>
<include name="**/hibernate3.jar"/>
</fileset>
</path>

<taskdef name = "hibernatetool"
classname = "org.hibernate.tool.ant.HibernateToolTask"
classpathref = "hibernatetools.classpath"
/>

<target name="hib_genjavaclass" depends="init">
<hibernatetool destdir="${src.dir}">
<configuration configurationfile="${webinf.dir}/hibernate.cfg.xml">
<fileset dir="${model.src.dir}">
<include name="**/*.hbm.xml" />
</fileset>
</configuration>
<hbm2java/>
<hbm2dll/>
</hibernatetool>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 20, 2005 6:10 am 
Newbie

Joined: Thu Feb 03, 2005 11:36 am
Posts: 11
Should I wear glasses ?

hbm2dll is NOT hbm2ddl :-(((


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.