-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : #11-모델소개 테이블 및 하위 테이블 3개 엔티티 생성
- Loading branch information
Showing
5 changed files
with
107 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/java/com/backend/soullive_a/entity/ModelImageKeyword.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.backend.soullive_a.entity; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
@Entity | ||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
|
||
public class ModelImageKeyword { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long modelImageKeywordId; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "model_id") //비식별인데.. | ||
private Model model; | ||
private String keyword; | ||
|
||
|
||
// @Builder | ||
// public ModelImageKeyword(Model model, String keyword) { | ||
// this.model = model; | ||
// this.keyword = keyword; | ||
// } | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/backend/soullive_a/entity/ModelIntroduction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.backend.soullive_a.entity; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
@Entity | ||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class ModelIntroduction { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@OneToOne | ||
@JoinColumn(name = "model_id") //식별 | ||
private Model model; | ||
|
||
// @Builder | ||
// public ModelIntroduction(Model model) { | ||
// this.model = model; | ||
// } | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/backend/soullive_a/entity/ModelRecentAdvertisement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.backend.soullive_a.entity; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
@Entity | ||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
|
||
public class ModelRecentAdvertisement { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long modelRecentAdvertisementId; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "model_id") | ||
private Model model; | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/com/backend/soullive_a/entity/ModelRecentWork.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.backend.soullive_a.entity; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
@Entity | ||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
|
||
public class ModelRecentWork { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long modelRecentWorkId; | ||
|
||
private Integer year; | ||
private String category; | ||
private String title; | ||
private String genre; | ||
private String role; | ||
private Boolean isMainActor; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "model_id") | ||
private Model model; | ||
} |