spring difference between save and saveandflush

Solutions on MaxInterview for spring difference between save and saveandflush by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
showing results for - "spring difference between save and saveandflush"
Christian
18 May 2016
1Save may or may not write your changes to the DB straight away. 
2When we call saveAndFlush system are enforcing the synchronization of your model state with the DB. 
3... 
4It doesn't flush data directly to a database until and unless we explicitly call flush and commit method. 
5It's flush directly flush data to a database.