Reputation: 1673
I'm using spring boot with spring.jpa.hibernate.ddl-auto=create
, but when application restarted, all tables drops and creates again. Is there some way to avoiding re-creation for already existing tables?
Upvotes: 53
Views: 125931
Reputation: 4048
spring.jpa.hibernate.ddl-auto=update
hibernate.ddl-auto should usually not be used in production.
Upvotes: 76