강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

개발한입님의 프로필 이미지
개발한입

작성한 질문수

스프링 데이터 JPA

스프링 데이터 JPA 6. Update 쿼리

flushAutomatically에 대해서..

작성

·

101

0

삭제된 글입니다

답변 1

0

백기선님의 프로필 이미지
백기선
지식공유자

@Modifying에 있는 flushAutomatically라는 속성은 @Query를 사용해서 쿼리를 정의한 쿼리 메소르를 실행하기 전에 플러시를 할지 말지 결정하는 속성입니다. 해당 쿼리 메소드 실행된 이후에 플러시는 당연히 기존에 알고 계신데로 되는거구요.

평소에 문서를 찾아서 읽는 습관을 들이시면 좋겠습니다.

https://docs.spring.io/spring-data/data-jpa/docs/current/api/org/springframework/data/jpa/repository/Modifying.html


booleanflushAutomatically

Defines whether we should flush the underlying persistence context before executing the modifying query.
개발한입님의 프로필 이미지
개발한입

작성한 질문수

질문하기