From bfc8b35b5ce305f86c0d74111feb7ceba3850425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EA=B1=B4=EC=B0=BD?= <92219795+this-is-spear@users.noreply.github.com> Date: Sun, 12 May 2024 11:27:23 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20:=20MemberEntity=20=EB=8B=A4?= =?UTF-8?q?=EB=8C=80=EB=8B=A4=20=EC=97=B0=EA=B4=80=EA=B4=80=EA=B3=84=20tar?= =?UTF-8?q?getEntity=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/port/out/persistence/entity/MemberEntity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coupon/src/main/kotlin/com/example/estdelivery/application/port/out/persistence/entity/MemberEntity.kt b/coupon/src/main/kotlin/com/example/estdelivery/application/port/out/persistence/entity/MemberEntity.kt index 504a0d3..9af5a26 100644 --- a/coupon/src/main/kotlin/com/example/estdelivery/application/port/out/persistence/entity/MemberEntity.kt +++ b/coupon/src/main/kotlin/com/example/estdelivery/application/port/out/persistence/entity/MemberEntity.kt @@ -14,7 +14,9 @@ import jakarta.persistence.Table @Table(name = "member") class MemberEntity( var name: String, - @ManyToMany + @ManyToMany( + targetEntity = CouponEntity::class + ) @JoinTable( name = "member_coupon_book", joinColumns = [JoinColumn(name = "member_id")],