javaspringjpa

Flush saveAll in JpaRepository


Since there's a saveAndFlush(), is there a way to Flush the updated entities when using saveAll()?

I'm trying to update entities by batch.


Solution

  • No, but you can manually call saveAll() and then flush().