diff --git a/src/main/java/com/thirdparty/ticketing/domain/seat/Seat.java b/src/main/java/com/thirdparty/ticketing/domain/seat/Seat.java index 363d6faf..67f1ae66 100644 --- a/src/main/java/com/thirdparty/ticketing/domain/seat/Seat.java +++ b/src/main/java/com/thirdparty/ticketing/domain/seat/Seat.java @@ -28,7 +28,7 @@ public class Seat extends BaseEntity { private Zone zone; @ManyToOne(fetch = FetchType.LAZY) - @JoinColumn(name = "seat_Grade", nullable = false) + @JoinColumn(name = "seat_grade_id", nullable = false) private SeatGrade seatGrade; @ManyToOne(fetch = FetchType.LAZY) diff --git a/src/main/java/com/thirdparty/ticketing/domain/seat/SeatGrade.java b/src/main/java/com/thirdparty/ticketing/domain/seat/SeatGrade.java index 54c19b2c..58f34d36 100644 --- a/src/main/java/com/thirdparty/ticketing/domain/seat/SeatGrade.java +++ b/src/main/java/com/thirdparty/ticketing/domain/seat/SeatGrade.java @@ -2,6 +2,7 @@ import jakarta.persistence.*; +import com.thirdparty.ticketing.domain.BaseEntity; import com.thirdparty.ticketing.domain.performance.Performance; import lombok.*; @@ -12,7 +13,7 @@ @Builder @AllArgsConstructor @NoArgsConstructor(access = AccessLevel.PROTECTED) -public class SeatGrade { +public class SeatGrade extends BaseEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long seatGradeId;