From 925709af84f0a6e0cea2f14e0bab916db529588f Mon Sep 17 00:00:00 2001 From: seungjo Date: Fri, 7 Feb 2025 15:59:35 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=8F=89=EA=B0=80=20Entity=20?= =?UTF-8?q?=EC=9D=B4=EB=A6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/main/java/com/dnd/sbooky/core/Initializer.java | 4 ++-- .../evaluation/{Evaluation.java => EvaluationEntity.java} | 8 ++++---- .../dnd/sbooky/core/evaluation/EvaluationRepository.java | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename core/src/main/java/com/dnd/sbooky/core/evaluation/{Evaluation.java => EvaluationEntity.java} (82%) 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 {}