Schema 'SA' does not exist and dropping table

This error appears in Derby only. It is because your Properties default is set to:

spring.jpa.hibernate.ddl-auto=create-drop

You have to set it to:

spring.jpa.hibernate.ddl-auto=update

Any further information can be found here: https://github.com/spring-projects/spring-boot/issues/7706


Add following properties for spring boot

**#JPA**
      spring.jpa.generate-ddl=true
      spring.jpa.hibernate.ddl-auto=update
      spring.jpa.database=default
      spring.jpa.show-sql=true
**#DATASOURCE**
     spring.datasource.continue-on-error=false
     spring.datasource.generate-unique-name=false
     spring.datasource.username=app