Spring boot ddl auto generator

hibernate, java, spring, spring-boot

Solution

spring.jpa.hibernate.ddl-auto=update

hibernate.ddl-auto should usually not be used in production.

Problem

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?

Original source

Related problems