November 2017
Intermediate to advanced
542 pages
14h 24m
English
Spring Data will automatically initialize the embedded database with the schema.sql, as described in the preceding section. Note, however, that with JPA, in order for the schema to be created and the data.sql file used to seed the database, we must ensure we set ddl-auto to none, as shown in the following code:
//src/main/resources/application.yml spring: jpa: database-platform: org.hibernate.dialect.H2Dialect hibernate: ddl-auto: none
Read now
Unlock full access