From e067f7c7aede6e86316480e19fe62b1d221a43fd Mon Sep 17 00:00:00 2001 From: Puqns67 Date: Thu, 14 Sep 2023 23:07:43 +0800 Subject: [PATCH] fix error for recommend Signed-off-by: Puqns67 --- src/main/kotlin/team8/fruitable/controller/api/Item.kt | 1 - src/main/kotlin/team8/fruitable/datebase/entity/Recommend.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/team8/fruitable/controller/api/Item.kt b/src/main/kotlin/team8/fruitable/controller/api/Item.kt index 1bede53..266ac36 100644 --- a/src/main/kotlin/team8/fruitable/controller/api/Item.kt +++ b/src/main/kotlin/team8/fruitable/controller/api/Item.kt @@ -1,6 +1,5 @@ package team8.fruitable.controller.api -import org.springframework.web.bind.annotation.CookieValue import org.springframework.web.bind.annotation.GetMapping import org.springframework.web.bind.annotation.PathVariable import org.springframework.web.bind.annotation.RestController diff --git a/src/main/kotlin/team8/fruitable/datebase/entity/Recommend.kt b/src/main/kotlin/team8/fruitable/datebase/entity/Recommend.kt index 602d819..4a3a12e 100644 --- a/src/main/kotlin/team8/fruitable/datebase/entity/Recommend.kt +++ b/src/main/kotlin/team8/fruitable/datebase/entity/Recommend.kt @@ -12,7 +12,7 @@ class Recommend ( @OneToOne @JoinColumn(name = "item") - var item: Item, + var item: Item? = null, @Column(name="description", length=32, nullable = false) var description: String? = null,