This content has been marked as final.
Show 2 replies
-
1. Re: How to turn off
weston.price Nov 21, 2006 10:26 AM (in response to toni)In your hibernate.properties or your persistence.xml file you need to set the following:
hibernate.hbm2ddl.auto=update
This will create your schema initially and not drop after your SessionFactory is iinitially closed. It should do 'diffs' for you as well.
http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html#configuration-optional -