Question: what is the difference between save and saveandflush in jpa?
Answer: On saveAndFlush , changes will be flushed to DB immediately in this command. With save , this is not necessarily true, and might stay just in memory, until flush or commit commands are issued.