Skip to content

Commit

Permalink
fix: SQL 예약어 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
donghoony committed Aug 10, 2024
1 parent 15c11e8 commit 87d5e00
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
import lombok.NoArgsConstructor;

@Entity
@Table(name = "option")
@Table(name = "option_item")
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Getter
public class Option {
public class OptionItem {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand All @@ -26,6 +26,6 @@ public class Option {
@Column(name = "option_group_id", nullable = false)
private long optionGroupId;

@Column(name = "order", nullable = false)
private int order;
@Column(name = "position", nullable = false)
private int position;
}
4 changes: 2 additions & 2 deletions backend/src/main/java/reviewme/question/domain/Question2.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ public class Question2 {
@Column(name = "guideline", nullable = true, length = 1_000)
private String guideline;

@Column(name = "order", nullable = false)
private int order;
@Column(name = "position", nullable = false)
private int position;
}
4 changes: 2 additions & 2 deletions backend/src/main/java/reviewme/template/domain/Section.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ public class Section {
@Column(name = "header", nullable = false, length = 1_000)
private String header;

@Column(name = "order", nullable = false)
private int order;
@Column(name = "position", nullable = false)
private int position;
}

0 comments on commit 87d5e00

Please sign in to comment.