-
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.
Merge pull request #48 from Domitory-CheckMate/feature/43-post
- Loading branch information
Showing
26 changed files
with
282 additions
and
133 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
src/main/java/org/gachon/checkmate/domain/checkList/converter/SleepGridingTypeConverter.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,12 @@ | ||
package org.gachon.checkmate.domain.checkList.converter; | ||
|
||
import jakarta.persistence.Converter; | ||
import org.gachon.checkmate.domain.checkList.entity.SleepGridingType; | ||
import org.gachon.checkmate.global.utils.AbstractEnumCodeAttributeConverter; | ||
|
||
@Converter | ||
public class SleepGridingTypeConverter extends AbstractEnumCodeAttributeConverter<SleepGridingType> { | ||
public SleepGridingTypeConverter() { | ||
super(SleepGridingType.class); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/org/gachon/checkmate/domain/checkList/converter/SleepSnoreTypeConverter.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,12 @@ | ||
package org.gachon.checkmate.domain.checkList.converter; | ||
|
||
import jakarta.persistence.Converter; | ||
import org.gachon.checkmate.domain.checkList.entity.SleepSnoreType; | ||
import org.gachon.checkmate.global.utils.AbstractEnumCodeAttributeConverter; | ||
|
||
@Converter | ||
public class SleepSnoreTypeConverter extends AbstractEnumCodeAttributeConverter<SleepSnoreType> { | ||
public SleepSnoreTypeConverter() { | ||
super(SleepSnoreType.class); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/org/gachon/checkmate/domain/checkList/converter/SleepTalkingTypeConverter.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,12 @@ | ||
package org.gachon.checkmate.domain.checkList.converter; | ||
|
||
import jakarta.persistence.Converter; | ||
import org.gachon.checkmate.domain.checkList.entity.SleepTalkingType; | ||
import org.gachon.checkmate.global.utils.AbstractEnumCodeAttributeConverter; | ||
|
||
@Converter | ||
public class SleepTalkingTypeConverter extends AbstractEnumCodeAttributeConverter<SleepTalkingType> { | ||
public SleepTalkingTypeConverter() { | ||
super(SleepTalkingType.class); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/org/gachon/checkmate/domain/checkList/converter/SleepTurningTypeConverter.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,10 @@ | ||
package org.gachon.checkmate.domain.checkList.converter; | ||
|
||
import org.gachon.checkmate.domain.checkList.entity.SleepTurningType; | ||
import org.gachon.checkmate.global.utils.AbstractEnumCodeAttributeConverter; | ||
|
||
public class SleepTurningTypeConverter extends AbstractEnumCodeAttributeConverter<SleepTurningType> { | ||
public SleepTurningTypeConverter() { | ||
super(SleepTurningType.class); | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
src/main/java/org/gachon/checkmate/domain/checkList/converter/SleepTypeConverter.java
This file was deleted.
Oops, something went wrong.
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
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
20 changes: 20 additions & 0 deletions
20
src/main/java/org/gachon/checkmate/domain/checkList/entity/SleepGridingType.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 org.gachon.checkmate.domain.checkList.entity; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import org.gachon.checkmate.global.utils.EnumField; | ||
|
||
@AllArgsConstructor(access = AccessLevel.PRIVATE) | ||
@Getter | ||
public enum SleepGridingType implements EnumField { | ||
TRUE("1", "코골이"), | ||
FALSE("2", "false"); | ||
|
||
private final String code; | ||
private final String desc; | ||
|
||
public int compareRateTo(SleepGridingType e) { | ||
return this.equals(e) ? 1 : 0; | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
src/main/java/org/gachon/checkmate/domain/checkList/entity/SleepTalkingType.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 org.gachon.checkmate.domain.checkList.entity; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import org.gachon.checkmate.global.utils.EnumField; | ||
|
||
@AllArgsConstructor(access = AccessLevel.PRIVATE) | ||
@Getter | ||
public enum SleepTalkingType implements EnumField { | ||
TRUE("1", "잠꼬대"), | ||
FALSE("2", "false"); | ||
|
||
private final String code; | ||
private final String desc; | ||
|
||
public int compareRateTo(SleepTalkingType e) { | ||
return this.equals(e) ? 1 : 0; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/org/gachon/checkmate/domain/checkList/entity/SleepTurningType.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 org.gachon.checkmate.domain.checkList.entity; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import org.gachon.checkmate.global.utils.EnumField; | ||
|
||
@AllArgsConstructor(access = AccessLevel.PRIVATE) | ||
@Getter | ||
public enum SleepTurningType implements EnumField { | ||
TRUE("1", "뒤척임"), | ||
FALSE("2", "false"); | ||
|
||
private final String code; | ||
private final String desc; | ||
|
||
public int compareRateTo(SleepTurningType e) { | ||
return this.equals(e) ? 1 : 0; | ||
} | ||
} |
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
Oops, something went wrong.