Skip to content

Commit

Permalink
Refactor: Seat, SeatGrade 엔티티 DDL 오류 수정 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
seminchoi authored Aug 15, 2024
2 parents 6fd7430 + 5f9d8fa commit 2ccaa2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import jakarta.persistence.*;

import com.thirdparty.ticketing.domain.BaseEntity;
import com.thirdparty.ticketing.domain.performance.Performance;

import lombok.*;
Expand All @@ -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;
Expand Down

0 comments on commit 2ccaa2a

Please sign in to comment.