Skip to content

Commit b594543

Browse files
committed
feat: Auction 유저 추가 #5
1 parent 153deec commit b594543

File tree

1 file changed

+4
-3
lines changed
  • src/main/java/com/windfall/domain/auction/entity

1 file changed

+4
-3
lines changed

src/main/java/com/windfall/domain/auction/entity/Auction.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
@AllArgsConstructor
1919
public class Auction extends BaseEntity {
2020

21+
@ManyToOne(fetch = FetchType.LAZY)
22+
@JoinColumn(name = "seller_id", nullable = false)
23+
private User seller;
24+
2125
@Column(nullable = false)
2226
private String title;
2327

@@ -50,7 +54,4 @@ public class Auction extends BaseEntity {
5054
@Column(nullable = false)
5155
private LocalDateTime endedAt;
5256

53-
@ManyToOne(fetch = FetchType.LAZY)
54-
@JoinColumn(name = "seller_id", nullable = false)
55-
private User seller;
5657
}

0 commit comments

Comments
 (0)