Answers for "hibernate keeps deleting tables"

1

hibernate keeps deleting tables

// You can achieve your purpose by adding this
spring.jpa.hibernate.ddl-auto = create

// But keep in mind that, everytime you start your application, it will delete all previous tables and data. So to avoid this, you just change it toupdate like this
spring.jpa.hibernate.ddl-auto = update
Posted by: Guest on May-11-2021

Browse Popular Code Answers by Language