From 292492fa967c15bb9787df95680091ec58670174 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sat, 3 Oct 2020 04:03:04 +0300 Subject: [PATCH] Minor updates Signed-off-by: Pekka Helenius --- .../fjordtek/bookstore/BookstoreApplication.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java b/bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java index d5ac1ed..bc3f542 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java @@ -60,7 +60,7 @@ public class BookstoreApplication extends SpringBootServletInitializer { PasswordEncoder passwordEncoder = PasswordEncoderFactories.createDelegatingPasswordEncoder(); - commonLogger.info("Add new roles to database"); + commonLogger.info("Add new roles to the database"); Role adminAR = new Role("ADMIN"); Role helpdeskAR = new Role("HELPDESK"); Role userAR = new Role("USER"); @@ -143,12 +143,12 @@ public class BookstoreApplication extends SpringBootServletInitializer { return (args) -> { - commonLogger.info("Add new categories to database"); + commonLogger.info("Add new categories to the database"); categoryRepository.save(new Category("Horror")); categoryRepository.save(new Category("Fantasy")); categoryRepository.save(new Category("Sci-Fi")); - commonLogger.info("Add new authors to database"); + commonLogger.info("Add new authors to the database"); authorRepository.save(new Author("Angela","Carter")); authorRepository.save(new Author("Andrzej","Sapkowski")); @@ -160,7 +160,8 @@ public class BookstoreApplication extends SpringBootServletInitializer { 1979, "1231231-12", new BigDecimal("18.00"), - categoryRepository.findByName("Horror").get(0) + categoryRepository.findByName("Horror").get(0), + 1 ); Book bookB = new Book( @@ -171,10 +172,11 @@ public class BookstoreApplication extends SpringBootServletInitializer { 1999, "3213221-3", new BigDecimal("19.99"), - categoryRepository.findByName("Fantasy").get(0) + categoryRepository.findByName("Fantasy").get(0), + 1 ); - commonLogger.info("Add new sample books to database"); + commonLogger.info("Add new sample books to the database"); bookRepository.save(bookA); bookRepository.save(bookB);