I am new in Spring Data JPA and will use @Modifying(clearAutomatically = true, flushAutomatically = true) annotation for an update method that updated a name field of Product entity. I have 2 questions that made me confused:
1. Do we need to use @Transactional with @Modifying annotation?
2. What does @Modifying exactly do? I read several pages e.g. Spring Data JPA @Modifying Annotation, and now too confused.
@Modifying()ever before???