-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
85 additions
and
87 deletions.
There are no files selected for viewing
9 changes: 0 additions & 9 deletions
9
...va/net/skhu/likelion12thteam03be/SelectColor/domain/repository/SelectColorRepository.java
This file was deleted.
Oops, something went wrong.
19 changes: 6 additions & 13 deletions
19
...m03be/SelectColor/domain/SelectColor.java → ...12thteam03be/SurveyColor/SurveyColor.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 |
---|---|---|
@@ -1,36 +1,29 @@ | ||
/* | ||
package net.skhu.likelion12thteam03be.SelectColor.domain; | ||
package net.skhu.likelion12thteam03be.SurveyColor; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.AccessLevel; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.*; | ||
import net.skhu.likelion12thteam03be.color.domian.Color; | ||
import net.skhu.likelion12thteam03be.survey.domain.Survey; | ||
|
||
@Entity | ||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class SelectColor { | ||
public class SurveyColor { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "selectColor_id") | ||
private Long id; | ||
|
||
@ManyToOne | ||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "survey_id") | ||
private Survey survey; | ||
|
||
@ManyToOne | ||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "color_id") | ||
private Color color; | ||
|
||
@Builder | ||
public SelectColor(Long id, Survey survey, Color Color) { | ||
this.id = id; | ||
public SurveyColor(Survey survey, Color color) { | ||
this.survey = survey; | ||
this.color = color; | ||
} | ||
} | ||
*/ |
6 changes: 6 additions & 0 deletions
6
src/main/java/net/skhu/likelion12thteam03be/SurveyColor/SurveyColorRepository.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,6 @@ | ||
package net.skhu.likelion12thteam03be.SurveyColor; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface SurveyColorRepository extends JpaRepository<SurveyColor, Long> { | ||
} |
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
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
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
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
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
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