Skip to content

feat: 미션, 학습기록, 데일리 미션, 데일리 목표 도메인 엔티티 생성(#24)#27

Merged
chaiminwoo0223 merged 1 commit intodevelopfrom
feature/24
Jul 13, 2025
Merged

feat: 미션, 학습기록, 데일리 미션, 데일리 목표 도메인 엔티티 생성(#24)#27
chaiminwoo0223 merged 1 commit intodevelopfrom
feature/24

Conversation

@chaiminwoo0223
Copy link
Contributor

@chaiminwoo0223 chaiminwoo0223 commented Jul 13, 2025

📌 작업 내용 및 특이사항

✅ 작업 내용

  • Mission, DailyGoal, DailyMission, StudyLog 도메인 엔티티 생성
  • 모든 엔티티는 BaseTimeEntity를 상속하여 생성/수정 시간 자동 관리
  • 연관 관계는 모두 **@manytoone(fetch = LAZY)**로 구성
  • 도메인 생성은 of 정적 팩토리 메서드로 처리

✅ 특이사항

  • dailygoal, dailymission, dailystudylog로 패키지를 분리해 도메인 명확성은 확보했지만, 구조가 지나치게 세분화된 측면이 있습니다.
  • DailyGoalDailyMission은 비즈니스적으로 밀접한 관계를 가지므로, daily 패키지로 통합하거나 trip, mission 패키지로 역할별 분리도 고려할 수 있습니다.
  • DailyStudyLog는 확장 가능성을 고려해, 클래스명을 StudyLog로 변경해도 좋을 것 같아요.

🌱 관련 이슈


🔍 참고사항(선택)


📚 기타(선택)

@chaiminwoo0223 chaiminwoo0223 requested a review from hisonghy July 13, 2025 08:33
@chaiminwoo0223 chaiminwoo0223 self-assigned this Jul 13, 2025
@chaiminwoo0223 chaiminwoo0223 added the ✨feature 구현, 개선 사항 관련 부분 label Jul 13, 2025
Copy link
Contributor

@hisonghy hisonghy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

민우님이 말하신 것처럼 daily 라는 경로에 두거나, trip, mission 경로에 두는 것도 좋아보입니다.
DailyStudyLog도 확장성을 워해서 StudyLog로 변경하는 것도 괜찮아보여요

@Column(nullable = false)
private String name;

private int order;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MySQL에 order 라는 예약어가 존재해서 필드명을 missionOrder 처럼 수정해주거나 @Column(name = "mission_order") 설정을 추가 해주어야합니다

Stamp 엔티티를 생성할 때도 해당 이슈가 발생해서 필드명을 stampOrder로 변경했었습니다

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵, 그럼 missionOrder로 수정하고 다시 올리겠습니다.

@chaiminwoo0223
Copy link
Contributor Author

chaiminwoo0223 commented Jul 13, 2025

민우님이 말하신 것처럼 daily 라는 경로에 두거나, trip, mission 경로에 두는 것도 좋아보입니다. DailyStudyLog도 확장성을 워해서 StudyLog로 변경하는 것도 괜찮아보여요

확인했습니다. 그럼 trip 패키지에 DailyGoal을 두고, mission 패키지에 DailyMission을 두는 형태로 수정하겠습니다.

그리고 DailyStudyLog도 StudyLog로 변경해서 다시 올리겠습니다.

@chaiminwoo0223 chaiminwoo0223 changed the title feat: 미션, 데일리 미션, 데일리 목표, 데일리 학습기록 도메인 엔티티 생성(#24) feat: 미션, 학습기록, 데일리 미션, 데일리 목표 도메인 엔티티 생성(#24) Jul 13, 2025
Copy link
Contributor

@hisonghy hisonghy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다. 머지 부탁드려요

@chaiminwoo0223 chaiminwoo0223 merged commit fa90dad into develop Jul 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨feature 구현, 개선 사항 관련 부분

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨[FEAT]: 미션, 학습기록, 데일리 미션, 데일리 목표 도메인 엔티티 생성

2 participants