My table data got deleted when i restart my spring boot application after changing the value of 'spring.jpa.hibernate.ddl-auto'

Viewed 6477

My table data got deleted when i restart my spring boot application after changing the value of 'spring.jpa.hibernate.ddl-auto' to 'create' from 'verify'. why it is so? what should i do to get my data back?

I could see some drop query executing in my IDE console. Why it happened? can someone please explain?

3 Answers

Make the following change in application.properties

spring.jpa.hibernate.ddl-auto=none

Just change table name:

@Entity
@Table(name = "hms_pinlocator")
Related