Richard Han wrote:
Greeting,
I use schemaexport tool within ant, is there a option for just producing ddl file without connecting to database and creating the tables etc?
Thanks
The following is what I used within a ant target
<schemaexport
properties="${build.conf}/hibernate.properties"
quiet="no"
text="no"
drop="no"
output="schema-horizon.sql">
<fileset dir="${src.java}">
<include name="**/horizondb/*.hbm.xml"/>
</fileset>
</schemaexport>
I think you just change the text="no" to text="yes" and then all you'll get is the schema-horizon.sql.
-Jeff