Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hibernate #deleting #tables
ADD COMMENT
Topic
Name
4+7 =