From 3e74f00662a737f3b7358e23560082f2442e71cf Mon Sep 17 00:00:00 2001 From: dong2ast Date: Sat, 22 Jul 2023 01:02:17 +0900 Subject: [PATCH] =?UTF-8?q?add:=20=EB=8D=94=EB=AF=B8=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=EC=97=90=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=A3=BC?= =?UTF-8?q?=EC=86=8C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/sophy/sophy/InitDb.java | 76 ++++++++--------------- 1 file changed, 27 insertions(+), 49 deletions(-) diff --git a/src/main/java/org/sophy/sophy/InitDb.java b/src/main/java/org/sophy/sophy/InitDb.java index 2bc45ff..22d9d27 100644 --- a/src/main/java/org/sophy/sophy/InitDb.java +++ b/src/main/java/org/sophy/sophy/InitDb.java @@ -431,7 +431,7 @@ public void dbInit() { Booktalk booktalk1 = Booktalk.builder() .place(place1) .title("사이보그가 되다") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F62904c23-1887-4a6c-ac87-8a8b277a923f%2FUntitled.png?id=ea54ac13-7779-481d-992b-d9145c52f7f1&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book1) .member(author1) .bookCategory(book1.getBookCategory()) @@ -448,7 +448,7 @@ public void dbInit() { Booktalk booktalk2 = Booktalk.builder() .place(place2) .title("김상욱의 양자 공부") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F2ec9afec-373f-4034-b4bc-2fad2d0838d8%2FUntitled.png?id=b0ebfcc1-cefb-4876-8047-948ef7af9143&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book11) .member(author3) .bookCategory(book11.getBookCategory()) @@ -465,7 +465,7 @@ public void dbInit() { Booktalk booktalk3 = Booktalk.builder() .place(place3) .title("별게 다 영감") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F359d9fcc-2a1b-4e71-a65b-9d8e7e311d5f%2FUntitled.png?id=1c14bcd7-65ff-4f08-9bee-88975fcf6160&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book5) .member(author2) .bookCategory(book11.getBookCategory()) @@ -482,7 +482,7 @@ public void dbInit() { Booktalk booktalk4 = Booktalk.builder() .place(place4) .title("기록의 쓸모") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fefb1a590-c49f-4b68-a189-fb5f53f826c0%2FUntitled.png?id=b309813a-cf1b-411e-a57d-b25c96e17a69&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book6) .member(author2) .bookCategory(book6.getBookCategory()) @@ -499,7 +499,7 @@ public void dbInit() { Booktalk booktalk5 = Booktalk.builder() .place(place5) .title("지구 끝에 온실") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F31fdaf42-b407-4696-8263-c9a582f95db4%2FUntitled.png?id=199430df-5edd-4c26-839c-4f0045066313&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book2) .member(author1) .bookCategory(book2.getBookCategory()) @@ -516,7 +516,7 @@ public void dbInit() { Booktalk booktalk6 = Booktalk.builder() .place(place6) .title("별게 다 영감") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F359d9fcc-2a1b-4e71-a65b-9d8e7e311d5f%2FUntitled.png?id=1c14bcd7-65ff-4f08-9bee-88975fcf6160&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book5) .member(author2) .bookCategory(book11.getBookCategory()) @@ -533,7 +533,7 @@ public void dbInit() { Booktalk booktalk7 = Booktalk.builder() .place(place7) .title("기록의 쓸모") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fefb1a590-c49f-4b68-a189-fb5f53f826c0%2FUntitled.png?id=b309813a-cf1b-411e-a57d-b25c96e17a69&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book6) .member(author2) .bookCategory(book6.getBookCategory()) @@ -550,7 +550,7 @@ public void dbInit() { Booktalk booktalk8 = Booktalk.builder() .place(place8) .title("과학은 논쟁이다") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fc3924693-ec8e-428b-96f3-fefa5bcaf875%2FUntitled.png?id=a33f80b5-9060-4b4f-be9d-cffb2b43faa3&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book8) .member(author3) .bookCategory(book8.getBookCategory()) @@ -567,7 +567,7 @@ public void dbInit() { Booktalk booktalk9 = Booktalk.builder() .place(place9) .title("지구 끝에 온실") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F31fdaf42-b407-4696-8263-c9a582f95db4%2FUntitled.png?id=199430df-5edd-4c26-839c-4f0045066313&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book2) .member(author1) .bookCategory(book2.getBookCategory()) @@ -584,7 +584,7 @@ public void dbInit() { Booktalk booktalk10 = Booktalk.builder() .place(place10) .title("떨림과 울림") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F9147f8d7-4f69-43fb-9371-e2227d7067ad%2FUntitled.png?id=69b349b5-4da3-4d79-9ef7-d1ba73401de3&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book9) .member(author3) .bookCategory(book9.getBookCategory()) @@ -601,7 +601,7 @@ public void dbInit() { Booktalk booktalk11 = Booktalk.builder() .place(place11) .title("김상욱의 양자 공부") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F2ec9afec-373f-4034-b4bc-2fad2d0838d8%2FUntitled.png?id=b0ebfcc1-cefb-4876-8047-948ef7af9143&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book11) .member(author3) .bookCategory(book11.getBookCategory()) @@ -618,7 +618,7 @@ public void dbInit() { Booktalk booktalk12 = Booktalk.builder() .place(place12) .title("사이보그가 되다") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F62904c23-1887-4a6c-ac87-8a8b277a923f%2FUntitled.png?id=ea54ac13-7779-481d-992b-d9145c52f7f1&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book1) .member(author1) .bookCategory(book1.getBookCategory()) @@ -635,7 +635,7 @@ public void dbInit() { Booktalk booktalk13 = Booktalk.builder() .place(place13) .title("기록의 쓸모") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fefb1a590-c49f-4b68-a189-fb5f53f826c0%2FUntitled.png?id=b309813a-cf1b-411e-a57d-b25c96e17a69&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book6) .member(author2) .bookCategory(book6.getBookCategory()) @@ -652,7 +652,7 @@ public void dbInit() { Booktalk booktalk14 = Booktalk.builder() .place(place14) .title("사이보그가 되다") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F62904c23-1887-4a6c-ac87-8a8b277a923f%2FUntitled.png?id=ea54ac13-7779-481d-992b-d9145c52f7f1&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book1) .member(author1) .bookCategory(book1.getBookCategory()) @@ -669,7 +669,7 @@ public void dbInit() { Booktalk booktalk15 = Booktalk.builder() .place(place15) .title("김상욱의 양자 공부") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F2ec9afec-373f-4034-b4bc-2fad2d0838d8%2FUntitled.png?id=b0ebfcc1-cefb-4876-8047-948ef7af9143&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book11) .member(author3) .bookCategory(book11.getBookCategory()) @@ -686,7 +686,7 @@ public void dbInit() { Booktalk booktalk16 = Booktalk.builder() .place(place16) .title("별게 다 영감") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F359d9fcc-2a1b-4e71-a65b-9d8e7e311d5f%2FUntitled.png?id=1c14bcd7-65ff-4f08-9bee-88975fcf6160&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book5) .member(author2) .bookCategory(book11.getBookCategory()) @@ -703,7 +703,7 @@ public void dbInit() { Booktalk booktalk17 = Booktalk.builder() .place(place17) .title("과학은 논쟁이다") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fc3924693-ec8e-428b-96f3-fefa5bcaf875%2FUntitled.png?id=a33f80b5-9060-4b4f-be9d-cffb2b43faa3&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book2) .member(author1) .bookCategory(book2.getBookCategory()) @@ -720,7 +720,7 @@ public void dbInit() { Booktalk booktalk18 = Booktalk.builder() .place(place18) .title("지구 끝에 온실") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F31fdaf42-b407-4696-8263-c9a582f95db4%2FUntitled.png?id=199430df-5edd-4c26-839c-4f0045066313&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book2) .member(author1) .bookCategory(book2.getBookCategory()) @@ -737,7 +737,7 @@ public void dbInit() { Booktalk booktalk19 = Booktalk.builder() .place(place19) .title("사이보그가 되다") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F62904c23-1887-4a6c-ac87-8a8b277a923f%2FUntitled.png?id=ea54ac13-7779-481d-992b-d9145c52f7f1&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book1) .member(author1) .bookCategory(book1.getBookCategory()) @@ -754,7 +754,7 @@ public void dbInit() { Booktalk booktalk20 = Booktalk.builder() .place(place20) .title("기록의 쓸모") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fefb1a590-c49f-4b68-a189-fb5f53f826c0%2FUntitled.png?id=b309813a-cf1b-411e-a57d-b25c96e17a69&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book6) .member(author2) .bookCategory(book6.getBookCategory()) @@ -771,7 +771,7 @@ public void dbInit() { Booktalk booktalk21 = Booktalk.builder() .place(place21) .title("사이보그가 되다") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F62904c23-1887-4a6c-ac87-8a8b277a923f%2FUntitled.png?id=ea54ac13-7779-481d-992b-d9145c52f7f1&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book1) .member(author1) .bookCategory(book1.getBookCategory()) @@ -788,7 +788,7 @@ public void dbInit() { Booktalk booktalk22 = Booktalk.builder() .place(place22) .title("떨림과 울림") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F9147f8d7-4f69-43fb-9371-e2227d7067ad%2FUntitled.png?id=69b349b5-4da3-4d79-9ef7-d1ba73401de3&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book9) .member(author3) .bookCategory(book9.getBookCategory()) @@ -805,7 +805,7 @@ public void dbInit() { Booktalk booktalk23 = Booktalk.builder() .place(place23) .title("별게 다 영감") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F359d9fcc-2a1b-4e71-a65b-9d8e7e311d5f%2FUntitled.png?id=1c14bcd7-65ff-4f08-9bee-88975fcf6160&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book5) .member(author2) .bookCategory(book11.getBookCategory()) @@ -822,7 +822,7 @@ public void dbInit() { Booktalk booktalk24 = Booktalk.builder() .place(place24) .title("지구 끝에 온실") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F31fdaf42-b407-4696-8263-c9a582f95db4%2FUntitled.png?id=199430df-5edd-4c26-839c-4f0045066313&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book2) .member(author1) .bookCategory(book2.getBookCategory()) @@ -839,7 +839,7 @@ public void dbInit() { Booktalk booktalk25 = Booktalk.builder() .place(place25) .title("사이보그가 되다") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F62904c23-1887-4a6c-ac87-8a8b277a923f%2FUntitled.png?id=ea54ac13-7779-481d-992b-d9145c52f7f1&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book1) .member(author1) .bookCategory(book1.getBookCategory()) @@ -856,7 +856,7 @@ public void dbInit() { Booktalk booktalk26 = Booktalk.builder() .place(place26) .title("기록의 쓸모") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fefb1a590-c49f-4b68-a189-fb5f53f826c0%2FUntitled.png?id=b309813a-cf1b-411e-a57d-b25c96e17a69&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book6) .member(author2) .bookCategory(book6.getBookCategory()) @@ -873,7 +873,7 @@ public void dbInit() { Booktalk booktalk27 = Booktalk.builder() .place(place27) .title("별게 다 영감") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") + .booktalkImageUrl("https://spicy-gatsby-1c7.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F359d9fcc-2a1b-4e71-a65b-9d8e7e311d5f%2FUntitled.png?id=1c14bcd7-65ff-4f08-9bee-88975fcf6160&table=block&spaceId=6e5cda1d-8fe4-4662-9a20-1d9546982dc5&width=200&userId=&cache=v2") .book(book5) .member(author2) .bookCategory(book11.getBookCategory()) @@ -887,23 +887,6 @@ public void dbInit() { .build(); em.persist(booktalk27); - Booktalk booktalk28 = Booktalk.builder() - .place(place1) - .title("테스트용 북토크") - .booktalkImageUrl("dwqE@EWQDQFQEWQ") - .book(book5) - .member(author2) - .bookCategory(book11.getBookCategory()) - .startDate(LocalDateTime.of(2023, 8, 24, 11, 0)) - .endDate(LocalDateTime.of(2023, 8, 24, 12, 0)) - .maximum(4) - .participationFee(0) - .preliminaryInfo(PreliminaryInfo.COMFORTABLE_COMING) - .description("항상 새로운 아이디어가 쏟아지는 시대, 아이디어를 찾는 방법도 여러 가지. 하루하루 아이디어를 위해 새로움을 찾는 마케터들은 어떤 방법을 쓸까요? 마케터 이승희의 영감을 만나보세요!") - .booktalkStatus(BooktalkStatus.RECRUITING) - .build(); - em.persist(booktalk28); - MemberBooktalk memberBooktalk = MemberBooktalk.builder() .member(citizen) .booktalk(booktalk1) @@ -914,14 +897,9 @@ public void dbInit() { .booktalk(booktalk2) .build(); - MemberBooktalk memberBooktalk28 = MemberBooktalk.builder() - .member(citizen) - .booktalk(booktalk28) - .build(); em.persist(memberBooktalk); em.persist(memberBooktalk2); - em.persist(memberBooktalk28); CompletedBooktalk completedBooktalk1 = CompletedBooktalk.builder() .title("지구에 종말이 온다해도")