diff --git a/core/src/main/java/com/dnd/sbooky/core/Initializer.java b/core/src/main/java/com/dnd/sbooky/core/Initializer.java index faf2cdc..f85cbf1 100644 --- a/core/src/main/java/com/dnd/sbooky/core/Initializer.java +++ b/core/src/main/java/com/dnd/sbooky/core/Initializer.java @@ -1,6 +1,6 @@ package com.dnd.sbooky.core; -import com.dnd.sbooky.core.evaluation.Evaluation; +import com.dnd.sbooky.core.evaluation.EvaluationEntity; import com.dnd.sbooky.core.evaluation.EvaluationKeyword; import com.dnd.sbooky.core.evaluation.EvaluationRepository; import com.dnd.sbooky.core.item.ItemEntity; @@ -32,6 +32,6 @@ public void init() { itemRepository.save(ItemEntity.newInstance(ItemType.CHARACTER, "유령", "basic_ghost")); Arrays.stream(EvaluationKeyword.values()) - .forEach(keyword -> evaluationRepository.save(Evaluation.newInstance(keyword))); + .forEach(keyword -> evaluationRepository.save(EvaluationEntity.newInstance(keyword))); } } diff --git a/core/src/main/java/com/dnd/sbooky/core/evaluation/Evaluation.java b/core/src/main/java/com/dnd/sbooky/core/evaluation/EvaluationEntity.java similarity index 82% rename from core/src/main/java/com/dnd/sbooky/core/evaluation/Evaluation.java rename to core/src/main/java/com/dnd/sbooky/core/evaluation/EvaluationEntity.java index ac0b31b..840c8c2 100644 --- a/core/src/main/java/com/dnd/sbooky/core/evaluation/Evaluation.java +++ b/core/src/main/java/com/dnd/sbooky/core/evaluation/EvaluationEntity.java @@ -14,7 +14,7 @@ @Entity @Table(name = "evaluation") @NoArgsConstructor(access = AccessLevel.PROTECTED) -public class Evaluation { +public class EvaluationEntity { private static final String ENTITY_PREFIX = "evaluation"; @@ -30,15 +30,15 @@ public class Evaluation { @Column(name = ENTITY_PREFIX + "_keyword", nullable = false) private EvaluationKeyword keyword; - private Evaluation(Long id, EvaluationType type, EvaluationKeyword keyword) { + private EvaluationEntity(Long id, EvaluationType type, EvaluationKeyword keyword) { precondition(id, type, keyword); this.id = id; this.type = type; this.keyword = keyword; } - public static Evaluation newInstance(EvaluationKeyword keyword) { - return new Evaluation(keyword.getId(), keyword.getType(), keyword); + public static EvaluationEntity newInstance(EvaluationKeyword keyword) { + return new EvaluationEntity(keyword.getId(), keyword.getType(), keyword); } private static void precondition(Long id, EvaluationType type, EvaluationKeyword keyword) { diff --git a/core/src/main/java/com/dnd/sbooky/core/evaluation/EvaluationRepository.java b/core/src/main/java/com/dnd/sbooky/core/evaluation/EvaluationRepository.java index ad7e14c..f64df2c 100644 --- a/core/src/main/java/com/dnd/sbooky/core/evaluation/EvaluationRepository.java +++ b/core/src/main/java/com/dnd/sbooky/core/evaluation/EvaluationRepository.java @@ -2,4 +2,4 @@ import org.springframework.data.jpa.repository.JpaRepository; -public interface EvaluationRepository extends JpaRepository {} +public interface EvaluationRepository extends JpaRepository {}