Skip to content

FINERACT-2455: Working Capital Loan COB Job#5539

Draft
somasorosdpc wants to merge 2 commits intoapache:developfrom
openMF:FINERACTR-2455/working-capital-cob
Draft

FINERACT-2455: Working Capital Loan COB Job#5539
somasorosdpc wants to merge 2 commits intoapache:developfrom
openMF:FINERACTR-2455/working-capital-cob

Conversation

@somasorosdpc
Copy link
Contributor

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!

  • Write the commit message as per our guidelines
  • Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.
  • Create/update unit or integration tests for verifying the changes made.
  • Follow our coding conventions.
  • Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes
  • This PR must not be a "code dump". Large changes can be made in a branch, with assistance. Ask for help on the developer mailing list.

Your assigned reviewer(s) will follow our guidelines for code reviews.

@somasorosdpc somasorosdpc force-pushed the FINERACTR-2455/working-capital-cob branch from b78203a to b74593f Compare February 25, 2026 15:45
entityManager.flush();
}

@Override
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems incorrect.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing solutions for WC loan

</changeSet>
<changeSet id="1771924953381-1"
author="fineract">
<createTable tableName="m_wcp_loan_account_locks">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m_wc_ please

import lombok.NoArgsConstructor;

@Entity
@Table(name = "m_wcp_loan_account_locks")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m_wc_ is enough


public interface LoanAccountLockRepository
extends CustomLoanAccountLockRepository, JpaRepository<LoanAccountLock, Long>, JpaSpecificationExecutor<LoanAccountLock> {
public interface AccountLockRepository<T extends AccountLock>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can mark this interface with @NoRepositoryBean

@somasorosdpc somasorosdpc force-pushed the FINERACTR-2455/working-capital-cob branch from 61aac8f to 99906d5 Compare February 27, 2026 12:25
@@ -52,4 +52,5 @@ and lck.lock_owner in ('LOAN_COB_CHUNK_PROCESSING','LOAN_INLINE_COB_PROCESSING')
entityManager.createNativeQuery(sql).executeUpdate();
entityManager.flush();
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using native query can we use a Specification / CriteriaBuilder?


@NonNull
@Override
public Map<String, ExecutionContext> partition(int gridSize) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure we dont duplicate common logics, like this.

@somasorosdpc somasorosdpc force-pushed the FINERACTR-2455/working-capital-cob branch 2 times, most recently from 127b070 to af9b7c2 Compare March 2, 2026 12:36
@somasorosdpc somasorosdpc force-pushed the FINERACTR-2455/working-capital-cob branch from af9b7c2 to 95c9217 Compare March 2, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants