This content has been marked as final.
Show 2 replies
-
1. Re: SchemaExport - how do i stop it from running?
hfarid Jan 19, 2006 10:58 PM (in response to msherwoo)you should not be using hsqldb for persisting your data (there are a lot of articls against using hsqldb for anything... in the end it's your call)
in persistance.xml<entity-manager> <name>abc</name> <jta-data-source>java:/DefaultDS</jta-data-source> <properties> ... ... <property name="hibernate.hbm2ddl.auto" value="update" /> </properties> </entity-manager>
this will update your schema in case of a change, you can replace "update" with "none" so hibernate will not touch your schema and you would get an exception the first time you try to access an object with mismatch persistance layout -
2. Re: SchemaExport - how do i stop it from running?
msherwoo Jan 20, 2006 9:54 AM (in response to msherwoo)Awesome! Thank you!