Matthew
0
Q:

spring difference between save and saveandflush

Save may or may not write your changes to the DB straight away. 
When we call saveAndFlush system are enforcing the synchronization of your model state with the DB. 
... 
It doesn't flush data directly to a database until and unless we explicitly call flush and commit method. 
It's flush directly flush data to a database.
1

New to Communities?

Join the community