From 3b3f3aba10081896eab5a66a330d0747fe17ae90 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sat, 3 Oct 2020 18:21:45 +0300 Subject: [PATCH] Add missing publish parameter for pre-defined book entity objects Signed-off-by: Pekka Helenius --- .../java/com/fjordtek/bookstore/BookstoreApplication.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java b/bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java index bc3f542..99ebb2f 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java @@ -161,7 +161,7 @@ public class BookstoreApplication extends SpringBootServletInitializer { "1231231-12", new BigDecimal("18.00"), categoryRepository.findByName("Horror").get(0), - 1 + true ); Book bookB = new Book( @@ -173,7 +173,7 @@ public class BookstoreApplication extends SpringBootServletInitializer { "3213221-3", new BigDecimal("19.99"), categoryRepository.findByName("Fantasy").get(0), - 1 + true ); commonLogger.info("Add new sample books to the database");