-
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 #54 from Domitory-CheckMate/feature/53-post
[fix] 정렬기준 default 값 변경
- Loading branch information
Showing
14 changed files
with
85 additions
and
41 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
src/main/java/org/gachon/checkmate/domain/checkList/converter/CallTypeConverter.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.CallType; | ||
import org.gachon.checkmate.global.utils.AbstractEnumCodeAttributeConverter; | ||
|
||
@Converter | ||
public class CallTypeConverter extends AbstractEnumCodeAttributeConverter<CallType> { | ||
public CallTypeConverter() { | ||
super(CallType.class); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/org/gachon/checkmate/domain/checkList/converter/EarPhoneTypeConverter.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.EarPhoneType; | ||
import org.gachon.checkmate.global.utils.AbstractEnumCodeAttributeConverter; | ||
|
||
@Converter | ||
public class EarPhoneTypeConverter extends AbstractEnumCodeAttributeConverter<EarPhoneType> { | ||
public EarPhoneTypeConverter() { | ||
super(EarPhoneType.class); | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
src/main/java/org/gachon/checkmate/domain/checkList/converter/NoiseTypeConverter.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
20 changes: 20 additions & 0 deletions
20
src/main/java/org/gachon/checkmate/domain/checkList/entity/EarPhoneType.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 EarPhoneType implements EnumField { | ||
NEED("1", "이어폰 필수"), | ||
NOT_NEED("2", "상관없음"); | ||
|
||
private final String code; | ||
private final String desc; | ||
|
||
public int compareRateTo(EarPhoneType 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
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