Project-Books / books-api

GraphQL Books API
https://project-books.github.io/#books-api
MIT License
35 stars 61 forks source link

Multiple authors saved #75

Closed knjk04 closed 3 years ago

knjk04 commented 3 years ago

In BooksApiApplication, we have a command line runner that prepopulates the database with some test data. Despite only creating two authors, multiple authors are created (see SELECT * FROM author;)

kev711 commented 3 years ago

@knjk04 : In application.properties the key spring.jpa.hibernate.ddl-auto is set to validate. This setting will not remove existing data on bootRun. Try changing the settings to create-drop.

knjk04 commented 3 years ago

Ah, thanks for this!