Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 458de9d

Browse files
committed
영속성 컨텍스트의 변경감지(dirty checking)가 적용으로 인한 소스 수정
1 parent c6110eb commit 458de9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/main/java/com/rest/api/service/board/BoardService.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public Post updatePost(long postId, String uid, ParamsPost paramsPost) {
5555
if (!uid.equals(user.getUid()))
5656
throw new CNotOwnerException();
5757

58+
// 영속성 컨텍스트의 변경감지(dirty checking) 기능에 의해 조회한 Post내용을 변경만 해도 Update쿼리가 실행됩니다.
5859
post.setUpdate(paramsPost.getAuthor(), paramsPost.getTitle(), paramsPost.getContent());
5960
return post;
6061
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /