hibernate keeps deleting tables code example
Example: 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