Skip to content

Commit 5ea0bd4

Browse files
committed
Merge branch 'feat/#76-book' into feat/#78-evaluation
2 parents 78d129c + 925709a commit 5ea0bd4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

core/src/main/java/com/dnd/sbooky/core/Initializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.dnd.sbooky.core;
22

3-
import com.dnd.sbooky.core.evaluation.Evaluation;
3+
import com.dnd.sbooky.core.evaluation.EvaluationEntity;
44
import com.dnd.sbooky.core.evaluation.EvaluationKeyword;
55
import com.dnd.sbooky.core.evaluation.EvaluationRepository;
66
import com.dnd.sbooky.core.item.ItemEntity;
@@ -32,6 +32,6 @@ public void init() {
3232
itemRepository.save(ItemEntity.newInstance(ItemType.CHARACTER, "유령", "basic_ghost"));
3333

3434
Arrays.stream(EvaluationKeyword.values())
35-
.forEach(keyword -> evaluationRepository.save(Evaluation.newInstance(keyword)));
35+
.forEach(keyword -> evaluationRepository.save(EvaluationEntity.newInstance(keyword)));
3636
}
3737
}

core/src/main/java/com/dnd/sbooky/core/evaluation/Evaluation.java renamed to core/src/main/java/com/dnd/sbooky/core/evaluation/EvaluationEntity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@Entity
1515
@Table(name = "evaluation")
1616
@NoArgsConstructor(access = AccessLevel.PROTECTED)
17-
public class Evaluation {
17+
public class EvaluationEntity {
1818

1919
private static final String ENTITY_PREFIX = "evaluation";
2020

@@ -30,15 +30,15 @@ public class Evaluation {
3030
@Column(name = ENTITY_PREFIX + "_keyword", nullable = false)
3131
private EvaluationKeyword keyword;
3232

33-
private Evaluation(Long id, EvaluationType type, EvaluationKeyword keyword) {
33+
private EvaluationEntity(Long id, EvaluationType type, EvaluationKeyword keyword) {
3434
precondition(id, type, keyword);
3535
this.id = id;
3636
this.type = type;
3737
this.keyword = keyword;
3838
}
3939

40-
public static Evaluation newInstance(EvaluationKeyword keyword) {
41-
return new Evaluation(keyword.getId(), keyword.getType(), keyword);
40+
public static EvaluationEntity newInstance(EvaluationKeyword keyword) {
41+
return new EvaluationEntity(keyword.getId(), keyword.getType(), keyword);
4242
}
4343

4444
private static void precondition(Long id, EvaluationType type, EvaluationKeyword keyword) {

core/src/main/java/com/dnd/sbooky/core/evaluation/EvaluationRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
import org.springframework.data.jpa.repository.JpaRepository;
44

5-
public interface EvaluationRepository extends JpaRepository<Evaluation, Long> {}
5+
public interface EvaluationRepository extends JpaRepository<EvaluationEntity, Long> {}

0 commit comments

Comments
 (0)