Announcement Announcement Module
Collapse
No announcement yet.
Prevent database reset after restart of tomcat Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Found the solution: Changed hibernate.hbm2ddl.auto in persistence.xml to update.

    Comment


    • #3
      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.

      Comment

      Working...
      X