How do I reload a Roo project without clearing the database?

Posted by Omniwombat on Stack Overflow See other posts from Stack Overflow or by Omniwombat
Published on 2010-02-20T05:11:52Z Indexed on 2010/06/16 15:22 UTC
Read the original article Hit count: 205

Filed under:
|
|
|

I've been learning how to build projects using Roo and am making good progress. I have the nucleus of a project which correctly displays my defined entities and allows me to create, edit, and delete the representative objects. I am using mysql at the database and I see that objects entered using the UI correctly appear in the mysql database. Per the Roo instructions, I am starting the webapp using "mvn tomcat:run".

Unfortunately, I've discovered that whenever I restart Tomcat using Maven, it clears all of the existing objects out of the database. I'm left with empty tables. It seems to do this as the final step just prior to Tomcat stating that the server has started.

I know this is just me being a n00b, but searches haven't been very helpful, none of the project's XML files seem relevant,

© Stack Overflow or respective owner

Related posts about mysql

Related posts about hibernate