dimo.velev wrote:
Thanks, but where do I find the class? Which package?
Dimo
I am also trying to figure out how to use SchemaExport along with Hibernate Annotations.
I ran accross several mailing list posts that mentioned these new tools:
http://cvs.sourceforge.net/viewcvs.py/h ... /tool/ant/
I was able to download the HibernateExt project from CVS, switch into the tools subsirectory, and build (via ant) the hibernate-tools.jar file which contains the new org.hibernate.tool.ant.HibernateToolTask. However, I have not figured out how to run it succesfully.
I tried the following ant config:
Code:
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="my.classpath"/>
<hibernatetool destdir="target">
<classpath refid="my.classpath"/>
<annotationconfiguration/>
<hbm2ddl drop="true" outputfilename="schema.sql"/>
</hibernatetool>
and that resulted in the following output from ant:
Code:
[hibernatetool] 1. task: hbm2ddl (Generates database schema)
BUILD FAILED
java.lang.ExceptionInInitializerError
Any help would be appreciated.