My DB is MySQL, everytime I run, And the DB will be cleaned up, all data are gone.Code:mvn jetty:run
Who could please tell me how to setup to avoid it?![]()
My DB is MySQL, everytime I run, And the DB will be cleaned up, all data are gone.Code:mvn jetty:run
Who could please tell me how to setup to avoid it?![]()
I think they are deleted because of the auto generated unit tests.
I am wrong, not because of the Unit Tests. The data are cleaned even I run asWho can tell me how to avoid the data are cleaned?Code:mvn jetty:run -DskipTests=true![]()
Oh my God, even I deployed war file to the Tomcat instance, the DB will be cleaned up everytime I start the server. What's wrong?
OK, I checked. This only happens if the provider is HIBERNATE, is that a bug?
Change the hibernate.hbm2ddl.auto property in the persistence.xml to "update"
Thank you very much! I am not familiar with Hibernate, it is my retribution. LOL