-
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.
Feature: 세션 데브톡 컨텐츠 추가 및 임베디드화 (#27)
* feat: 세션 데브톡 컨텐츠 추가 * feat: 세션 컨텐츠 임베디드화 - SessionContents 임베디드 타입 추가 - 세션 리스트 반환 API Response 변경 - Jpa 메서드명 변경
- Loading branch information
Showing
12 changed files
with
99 additions
and
55 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
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
2 changes: 1 addition & 1 deletion
2
...squiz/common/entity/GenerationPeriod.java → ...generation/embedded/GenerationPeriod.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
39 changes: 39 additions & 0 deletions
39
src/main/java/org/cotato/csquiz/domain/generation/embedded/SessionContents.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,39 @@ | ||
package org.cotato.csquiz.domain.generation.embedded; | ||
|
||
import jakarta.persistence.Embeddable; | ||
import jakarta.persistence.EnumType; | ||
import jakarta.persistence.Enumerated; | ||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.cotato.csquiz.domain.generation.enums.CSEducation; | ||
import org.cotato.csquiz.domain.generation.enums.DevTalk; | ||
import org.cotato.csquiz.domain.generation.enums.ItIssue; | ||
import org.cotato.csquiz.domain.generation.enums.Networking; | ||
import org.hibernate.annotations.ColumnDefault; | ||
|
||
@Embeddable | ||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class SessionContents { | ||
|
||
@Enumerated(EnumType.STRING) | ||
@ColumnDefault(value = "'IT_OFF'") | ||
private ItIssue itIssue; | ||
|
||
@Enumerated(EnumType.STRING) | ||
@ColumnDefault(value = "'NW_OFF'") | ||
private Networking networking; | ||
|
||
@Enumerated(EnumType.STRING) | ||
@ColumnDefault(value = "'CS_OFF'") | ||
private CSEducation csEducation; | ||
|
||
@Enumerated(EnumType.STRING) | ||
@ColumnDefault(value = "'DEVTALK_OFF'") | ||
private DevTalk devTalk; | ||
} |
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
11 changes: 11 additions & 0 deletions
11
src/main/java/org/cotato/csquiz/domain/generation/enums/DevTalk.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,11 @@ | ||
package org.cotato.csquiz.domain.generation.enums; | ||
|
||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public enum DevTalk { | ||
ON("데브톡 존재"), | ||
OFF("데브톡 없음") | ||
; | ||
private final String description; | ||
} |
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