Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#76 Feat: ApplyInfo, TicketInfo entity 생성 #77

Merged
merged 3 commits into from
Oct 13, 2024
Merged

Conversation

yumzen
Copy link
Member

@yumzen yumzen commented Oct 9, 2024

#️⃣연관된 이슈

ex) #이슈번호, #이슈번호

📝작업 내용

ApplyInfoData, TicketInfoData 모두 데이터들을 모두 필드로 관리할 필요는 없을 것 같아서 Json 타입으로 데이터 저장하려고 합니다!

스크린샷 (선택)

  • 예시 Data 입니다!
스크린샷 2024-10-09 오후 2 18 59

💬리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

@yumzen yumzen added the ✨ Feature 기능 개발 label Oct 9, 2024
@yumzen yumzen requested review from kjiyun and woogieon8on October 9, 2024 05:11
@yumzen yumzen self-assigned this Oct 9, 2024
import java.time.LocalDateTime;

@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public record ApplyInfoData(
Copy link
Collaborator

@kjiyun kjiyun Oct 9, 2024

Choose a reason for hiding this comment

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

record를 사용하면 값을 변경할 수 없어서 나중에 날짜를 착각했거나 계획 변경이 있었을 때 변경이 용이하지 않는다는 단점이 있을 수도 있을 것 같습니다. record를 사용하신 이유가 있을까요?

Copy link
Member Author

Choose a reason for hiding this comment

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

record는 어노테이션 사용을 최소화하고, 사실상 data 안에 있는 내용들은 update 외의 요청에서는 변경이 일어나야 하지 않아야 하기 때문에 사용했습니다! 나중에 수정 요청들어와도 update 메소드 생성하여 변경할 수 있습니다!

Copy link
Collaborator

Choose a reason for hiding this comment

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

ApplyInfo 엔티티는 간단하게 id와 나머지 지원서 세부내용으로 이루어져 있는데, 세부내용을 vo로 묶어 관리할 때 유지보수 외에 성능 측면에서도 이점이 있는지 궁금합니다!

Copy link
Collaborator

Choose a reason for hiding this comment

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

앗 이해했습니다! 감사합니다

@yumzen yumzen merged commit 28cd45e into kahluaband:main Oct 13, 2024
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.

3 participants