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

[고도화] 엔티티 코드 리팩토링, equals(), hashcode() 에서 필드 접근 getter로 바꾸기 #78

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

GGHDMS
Copy link
Owner

@GGHDMS GGHDMS commented Feb 16, 2023

This closes #77

지연 로딩이 발생했을 때 proxy 객체로 필드에 값이 초기화 되지 않았을 때
원하는 결과가 생기지 않을 수 있다.
그렇기 때문에 getter를 사용하여 proxy 객체일 때 초기화 시켜준다.
@GGHDMS GGHDMS added the enhancement New feature or request label Feb 16, 2023
@GGHDMS GGHDMS added this to the 게시판 서비스 만들기 milestone Feb 16, 2023
@GGHDMS GGHDMS self-assigned this Feb 16, 2023
Copy link
Owner Author

@GGHDMS GGHDMS left a comment

Choose a reason for hiding this comment

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

👍

@GGHDMS GGHDMS merged commit 6762984 into main Feb 16, 2023
@GGHDMS GGHDMS deleted the feature/#77-entity-code-refactoring branch February 16, 2023 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[고도화] 엔티티 코드 리팩토링, equals(), hashcode() 에서 필드 접근 getter로 바꾸기
1 participant