Hi, Max:
Thank you very much for your reply. Actually I was using hbm2hbmxml, it was a typo in my original post. I have a database with all tables, my task is to create a set of *.hbm.xml files from those tables(I include my ant target for this task). Should I use hbm2hbmxml for
Hibernate3? If not, what should I use to achieve this goal?
Any comment would be greatly appreciated!!
Code:
<target name="ddl2xml" description="Generate .java from .hbm files.">
<taskdef
name="ddl2xml"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref ="compile-classpath"
/>
<ddl2xml destdir="${gen.dir}">
<jdbcconfiguration configurationfile="${webapp.dir}/WEB-INF/classes/gen.cfg.xml"
packagename="com.cucbc.cgo.data"
revengfile="${webapp.dir}/WEB-INF/classes/hibernate.reveng.xml"
/> <!-- database settings are read from hibernate.cfg.xml and/or via propertyfile if provided -->
<hbm2hbmxml/>
</ddl2xml>
</target>