I can user hbm2ddl tools to create ddl file like this:
Code:
<target name="schemaexport">
<taskdef name="schemaexport"
classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"
classpathref="classpath"/>
<schemaexport
properties="${classes.dir}\hibernate.properties"
quiet="no"
text="no"
drop="no"
delimiter=";"
output="{table.dir}/out.sql">
<fileset dir="src">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>
</target>
and it create a ddl file which contains ddls to create all tables.
If I want to use each hbm.xml to create a seperate sql file, how can i achieve it?