Skip to content

Commit

Permalink
refactor : MemberEntity 다대다 연관관계 targetEntity 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
this-is-spear committed May 12, 2024
1 parent 19dccd2 commit bfc8b35
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")],
Expand Down

0 comments on commit bfc8b35

Please sign in to comment.