FINERACT-1724 - Optimistic locking fix

- [x] ReloadService for lead entities
- [x] ReloaderService iterating over ReloadService and try to find and reload the entity
- [x] Fix COBBusinessStepServiceImpl to reload the entity before business step
This commit is contained in:
Janos Haber
2023-03-08 14:27:48 +01:00
committed by Arnold Gálovics
parent baa71f6484
commit 367550007c
7 changed files with 129 additions and 4 deletions
@@ -23,6 +23,7 @@ import static org.mockito.Mockito.mock;
import org.apache.fineract.cob.COBBusinessStepService;
import org.apache.fineract.cob.COBBusinessStepServiceImpl;
import org.apache.fineract.cob.domain.BatchBusinessStepRepository;
import org.apache.fineract.cob.service.ReloaderService;
import org.apache.fineract.infrastructure.configuration.domain.ConfigurationDomainService;
import org.apache.fineract.infrastructure.core.config.FineractProperties;
import org.apache.fineract.infrastructure.event.business.service.BusinessEventNotifierService;
@@ -48,9 +49,9 @@ public class TestDefaultConfiguration {
@Bean
public COBBusinessStepService cobBusinessStepService(BatchBusinessStepRepository batchBusinessStepRepository,
ApplicationContext context, ListableBeanFactory beanFactory, BusinessEventNotifierService businessEventNotifierService,
ConfigurationDomainService configurationDomainService) {
ConfigurationDomainService configurationDomainService, ReloaderService reloaderService) {
return new COBBusinessStepServiceImpl(batchBusinessStepRepository, context, beanFactory, businessEventNotifierService,
configurationDomainService);
configurationDomainService, reloaderService);
}
@Bean