I am trying to learn spring data JPA by testing some CRUD operation via JpaRepository.
I came across two methods save and saveAndFlush.
I don't get the difference between these two. On calling save also my changes are getting saved into database so what is the use of saveAndFlush.