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

Entity 클래스에 @Setter 미권장 #6

Closed
1 task
Chaeyounglim opened this issue Jul 25, 2023 · 2 comments
Closed
1 task

Entity 클래스에 @Setter 미권장 #6

Chaeyounglim opened this issue Jul 25, 2023 · 2 comments

Comments

@Chaeyounglim
Copy link
Owner

  1. Entity 클래스 내에 @Setter는 기재하지 않는 것이 좋다.
  • DB 정보의 예기치 않은 정보 수정이 이루어지지 않도록 방지하기 위함이다.

  • 모든 Entity 클래스 내에 @Setter 어노테이션 삭제하기

@Chaeyounglim Chaeyounglim changed the title Entity 클래스에는 @Setter 미권 Entity 클래스에 @Setter 미권장 Jul 25, 2023
Chaeyounglim added a commit that referenced this issue Jul 25, 2023
etc)
1. change table naming:
'commentlikes' -> 'comment_like'.

2. 게시글, 댓글 테이블 내에 likeCnt 칼럼 제거
@Chaeyounglim
Copy link
Owner Author

Chaeyounglim commented Jul 25, 2023

@Setter 어노테이션이 Post.class에서만 제거되었습니다.
Comment, CommentLike, PostLike, User 클래스 내에서도 수정 필요!

Chaeyounglim added a commit that referenced this issue Jul 25, 2023
@Chaeyounglim
Copy link
Owner Author

모두 삭제 완료 및 기능 테스트 complete!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant