Results 1 to 3 of 3

Thread: Prevent database reset after restart of tomcat

  1. #1
    Join Date
    Aug 2009
    Posts
    16

    Default Prevent database reset after restart of tomcat

    I want to use my sample roo application with real data. I use postgresql and wrote an sql file that fills the database once I started tomcat via "mvn tomcat:run". What do I have to do that the database is not reset after restarting tomcat?

    Many thx

  2. #2
    Join Date
    Aug 2009
    Posts
    16

    Default

    Found the solution: Changed hibernate.hbm2ddl.auto in persistence.xml to update.

  3. #3
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    That is correct. Just be aware that changes to your domain model (and therefore table model) will possibly cause some issues there. But as long as your domain model is fairly stable you should be good with the 'update' flag.
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •