Hibernate Team |
|
Joined: Thu Apr 05, 2007 5:52 am Posts: 1689 Location: Sweden
|
Hi,
the ant task just wraps around org.hibernate.tool.hbm2ddl.SchemaExport which is part of Hibernate Core. Given you have a Configuration you can just instantiate an instance of this class and trigger the schema generation.
You can also just add the hibernate.hbm2ddl.auto property to your hibernate configuration file. Hibernate will then call the appropriate SchemaExport methods depending on which value you set for this value. Check the online doc for possible values.
--Hardy
|
|