Stop using ddl-auto=update in production

java dev.to

spring.jpa.hibernate.ddl-auto=update is the fastest way to get started: change an entity, restart, and the table follows. It stays in the configuration long after the first demo, and one day it runs against a database with real customers in it. This article makes three ordinary entity changes with update switched on and shows what Hibernate does to the database. Then it moves the same project, with its existing data, to generated migrations that you review before they run. Tested with: Migrax

Read Full Tutorial open_in_new
arrow_back Back to Tutorials