For example, instead of
@Modifying(flushAutomatically = true)
Only
@Modifying
I do understand that the main point of it - to flush all cache to DB before querying, But after we write @Query isn't JPQL query already processed by JPA? And JPA has default Flushmode = AUTO, so it should flush data to db anyway.
Am I thinking right? If yes, can I skip this annotation?
P.S. I haven't found anything on stackoverflow that is answering that question, so it is not a duplicate.