I am trying to generate mapping file using the hbm2hbmxml tool. My understanding is that the tool generates .hbm.xml files given a property file containing the schema and dialect details. I have written an ant task to invoke the tool. The task executes without any error. However, no hibernate mapping files are generated. What am I missing. Since there are no errors, I am unable to find out where I am wrong.
Here is the ant task :
Code:
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="toolslib" />
<hibernatetool destdir="generated">
<configuration propertyfile="hibernate.properties"/>
<hbm2hbmxml/>
</hibernatetool>
The hiberate.properties file holds the schema, driver class, user name, password and the dialect.
Where am I wrong. Please help!