FINERACT-2455: Working Capital Loan COB Job#5539
Draft
somasorosdpc wants to merge 2 commits intoapache:developfrom
Draft
FINERACT-2455: Working Capital Loan COB Job#5539somasorosdpc wants to merge 2 commits intoapache:developfrom
somasorosdpc wants to merge 2 commits intoapache:developfrom
Conversation
b78203a to
b74593f
Compare
adamsaghy
reviewed
Feb 26, 2026
fineract-cob/src/main/java/org/apache/fineract/cob/converter/COBParameterConverter.java
Show resolved
Hide resolved
adamsaghy
reviewed
Feb 26, 2026
| entityManager.flush(); | ||
| } | ||
|
|
||
| @Override |
adamsaghy
reviewed
Feb 26, 2026
Contributor
There was a problem hiding this comment.
Missing solutions for WC loan
adamsaghy
reviewed
Feb 26, 2026
| </changeSet> | ||
| <changeSet id="1771924953381-1" | ||
| author="fineract"> | ||
| <createTable tableName="m_wcp_loan_account_locks"> |
adamsaghy
reviewed
Feb 26, 2026
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Entity | ||
| @Table(name = "m_wcp_loan_account_locks") |
adamsaghy
reviewed
Feb 26, 2026
fineract-cob/src/main/java/org/apache/fineract/cob/domain/LockOwner.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Feb 26, 2026
|
|
||
| public interface LoanAccountLockRepository | ||
| extends CustomLoanAccountLockRepository, JpaRepository<LoanAccountLock, Long>, JpaSpecificationExecutor<LoanAccountLock> { | ||
| public interface AccountLockRepository<T extends AccountLock> |
Contributor
There was a problem hiding this comment.
If you use AccountLockRepository as the common interface, but no extend JpaRepository and no JpaSpecificationExecutor .
This contains the methods of common functionality.
Then have 2 new interface:
- LoanAccountLockRepository which contains the specific
removeLockByOwner - WorkingCapitalAccountLockRepository which contains the specific
removeLockByOwner.
Contributor
There was a problem hiding this comment.
You can mark this interface with @NoRepositoryBean
adamsaghy
reviewed
Feb 26, 2026
...rking-capital-loan/src/main/java/org/apache/fineract/cob/loan/WCPAccountLockServiceImpl.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Feb 26, 2026
...-loan/src/main/java/org/apache/fineract/cob/wcploan/businessstep/WCPLoanCOBBusinessStep.java
Outdated
Show resolved
Hide resolved
61aac8f to
99906d5
Compare
adamsaghy
reviewed
Feb 27, 2026
| @@ -52,4 +52,5 @@ and lck.lock_owner in ('LOAN_COB_CHUNK_PROCESSING','LOAN_INLINE_COB_PROCESSING') | |||
| entityManager.createNativeQuery(sql).executeUpdate(); | |||
| entityManager.flush(); | |||
| } | |||
|
|
|||
Contributor
There was a problem hiding this comment.
Instead of using native query can we use a Specification / CriteriaBuilder?
adamsaghy
reviewed
Feb 27, 2026
fineract-cob/src/main/java/org/apache/fineract/cob/service/AbstractAccountLockService.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Feb 27, 2026
fineract-cob/src/main/resources/jpa/static-weaving/module/fineract-cob/persistence.xml
Show resolved
Hide resolved
adamsaghy
reviewed
Feb 27, 2026
.../fineract/infrastructure/jobs/service/jobparameterprovider/AbstractJobParameterProvider.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Feb 27, 2026
.../fineract/infrastructure/jobs/service/jobparameterprovider/AbstractJobParameterProvider.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Feb 27, 2026
|
|
||
| @NonNull | ||
| @Override | ||
| public Map<String, ExecutionContext> partition(int gridSize) { |
Contributor
There was a problem hiding this comment.
Please make sure we dont duplicate common logics, like this.
127b070 to
af9b7c2
Compare
af9b7c2 to
95c9217
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Describe the changes made and why they were made. (Ignore if these details are present on the associated Apache Fineract JIRA ticket.)
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
Your assigned reviewer(s) will follow our guidelines for code reviews.