gorill
gorill

Reputation: 1673

Spring boot ddl auto generator

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

Answers (1)

samlewis
samlewis

Reputation: 4048

spring.jpa.hibernate.ddl-auto=update

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

Upvotes: 76

Related Questions