loan prodcut update method changed to saveAndFlush

This commit is contained in:
Nayan Ambali
2013-02-06 01:24:51 +05:30
parent 22ea9d4dff
commit b711436c9e
@@ -105,7 +105,7 @@ public class LoanProductWritePlatformServiceJpaRepositoryImpl implements LoanPro
} catch (DataIntegrityViolationException dve) {
handleDataIntegrityIssues(command, dve);
return new CommandProcessingResult(Long.valueOf(-1));
return CommandProcessingResult.empty();
}
}
@@ -178,7 +178,7 @@ public class LoanProductWritePlatformServiceJpaRepositoryImpl implements LoanPro
}
if (!changes.isEmpty()) {
this.loanProductRepository.save(product);
this.loanProductRepository.saveAndFlush(product);
}
return new CommandProcessingResultBuilder() //