Hibernate has a property called schemaUpdate. Set it on your SessionFactory so that the database is created on initialization.
<property name="schemaUpdate" value="true" />
If you are using JPA, then there is a generateDdl property that is to be set on the JpaVendorAdapter
Bozho
2009-12-22 09:43:27