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:
committed by
Arnold Gálovics
parent
baa71f6484
commit
367550007c
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user