Repository navigation
FINERACT-3258: Replace native SQL batch lock upgrade with QueryDSL (SQL 066) - #7207
Open
Harry-aura wants to merge 1 commit into
Open
Harry-aura wants to merge 1 commit into
Harry-aura wants to merge 1 commit into
Conversation
…ServiceImpl Signed-off-by: Harivikash Katta <harivikashkatta@gmail.com>
Harry-aura
force-pushed
the
FINERACT-3258
branch
from
December 6, 2026 08:10
187a997 to
7716e1f
Compare
Harry-aura
marked this pull request as ready for review
December 6, 2026 08:11
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
Resolves FINERACT-3258 (
Type safe query: [SQL 066] Batch loan lock upgrade (LoanLockingServiceImpl:37)).Summary of Changes
AbstractLockingService(fineract-cob): MigratedupgradeLock(...)fromjdbcTemplate.batchUpdate(...)to a chunked, type-safe QueryDSLSQLUpdateClause(addBatch()/execute()), preservinginClauseParameterSizeLimitbatching, atomicversion + 1increments, UTCTimestampbinding, andWHERE <id_column> = ?predicates. Removed the abstractgetBatchLoanLockUpgrade()method.LoanLockingServiceImpl(fineract-loan),WorkingCapitalLoanLockingServiceImpl(fineract-working-capital-loan), andSavingsLockingServiceImpl(fineract-provider): Passed each table's generated QueryDSLversionandlockPlacedOnpaths tosuper(...)and removed the obsoleteBATCH_LOAN_LOCK_UPGRADE/BATCH_SAVINGS_LOCK_UPGRADESQL constants andgetBatchLoanLockUpgrade()overrides.LoanLockingServiceImplTest(fineract-loan) covering empty-list no-op handling, configured batch chunking, generated SQL across MySQL and PostgreSQL dialects, and bind parameters; updatedSavingsLockingServiceImplTest,DatabaseLockingService,LockingConfiguration, andLockingServiceSqlTest.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.