When Spring does batchupdate on a List of records, if we set batch size = 10, if the 5th records fails in the DAO operation does Spring stop there and roll back the first 4 records ? or does it continue the next 5 records ?
mark I thomas wrote:When Spring does batchupdate on a List of records, if we set batch size = 10, if the 5th records fails in the DAO operation does Spring stop there and roll back the first 4 records ? or does it continue the next 5 records ?
Using Spring Batch module, when you configure your jobs, you have the ability to configure what happens. If you want it to continue, you can tell it to continue in your configuration, if you want it to stop when you hit an error it can stop if you tell it to in your configuration.
If you aren't using Spring Batch and your question is via Spring JdbcTemplate, then I am not sure.