I am using Hibernate Tool to output the ddl for my project. The following call in my ant build script works perfectly fine for the hibernate mapping files in my source code. Now in addition to these mapping files I need to pick up the mapping files packaged in the jBPM jar (because I want the jBPM tables as part of my schema). Can this be done?
Code:
<hibernatetool destdir="${basedir}">
<classpath path="${mylib}" />
<configuration propertyfile="${basedir}/hibernate.properties">
<fileset dir="${my-hbm.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</configuration>
<hbm2ddl export="false" outputfilename="create-schema.sql" format="true"/>
</hibernatetool>
Thanks.
Naresh