flushAutomatically에 대해서..

20.04.08 16:48 작성 조회수 25

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.