Skip to content

Commit

Permalink
entity 아이디 생성전략 Identity로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
장준하 authored and 장준하 committed Aug 5, 2024
1 parent 89016cd commit 32bcf85
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/java/newCar/event_page/entity/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class User {

@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="USER_ID")
private Long id;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/newCar/event_page/entity/event/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@DiscriminatorColumn(name="etype")
public class Event {
@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="EVENT_ID")
private Long id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@Getter
public class EventCommon {
@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="EVENT_COMMON_ID")
private Long id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@Getter
public class EventUser {
@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@ManyToOne
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@Setter
public class Quiz {
@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="QUIZ_ID")
private Long id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@Getter
public class QuizWinner {
@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@ManyToOne
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@Getter
public class PersonalityTest {
@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@ManyToOne(fetch = FetchType.LAZY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@Getter
public class RacingWinner {
@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@ManyToOne(fetch = FetchType.LAZY)
Expand Down

0 comments on commit 32bcf85

Please sign in to comment.