Skip to content

Commit de29d6f

Browse files
committed
fix: coupon join column
1 parent 30902eb commit de29d6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/gogo/gogostage/domain/coupon/result/persistence/CouponResult.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class CouponResult (
1313
@Column(name = "id", nullable = false)
1414
val id: Long = 0,
1515

16-
@Column(name = "coupon_id", nullable = false)
16+
@JoinColumn(name = "coupon_id", nullable = false)
1717
@OneToOne(cascade = [(CascadeType.ALL)], fetch = FetchType.LAZY)
1818
val coupon: Coupon,
1919

src/main/kotlin/gogo/gogostage/domain/coupon/root/persistence/Coupon.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Coupon (
1111
@Column(name = "id", nullable = false)
1212
val id: String,
1313

14-
@Column(name = "stage_id", nullable = false)
14+
@JoinColumn(name = "stage_id", nullable = false)
1515
@ManyToOne(fetch = FetchType.LAZY)
1616
val stage: Stage,
1717

0 commit comments

Comments
 (0)