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

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918559#3918559

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918559


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to