We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5289915 commit 3a66720Copy full SHA for 3a66720
src/main/java/com/windfall/domain/auction/entity/Auction.java
@@ -4,6 +4,7 @@
4
5
import com.windfall.domain.auction.enums.AuctionCategory;
6
import com.windfall.domain.auction.enums.AuctionStatus;
7
+import com.windfall.domain.user.entity.User;
8
import com.windfall.global.entity.BaseEntity;
9
import jakarta.persistence.*;
10
import lombok.*;
@@ -48,4 +49,8 @@ public class Auction extends BaseEntity {
48
49
50
@Column(nullable = false)
51
private LocalDateTime endedAt;
52
+
53
+ @ManyToOne(fetch = FetchType.LAZY)
54
+ @JoinColumn(name = "seller_id", nullable = false)
55
+ private User seller;
56
}
0 commit comments