Skip to content

FINERACT-1788: Replace notification native queries with JPQL#5956

Open
udayagiri-sivasai-dev wants to merge 1 commit into
apache:developfrom
udayagiri-sivasai-dev:FINERACT-1788
Open

FINERACT-1788: Replace notification native queries with JPQL#5956
udayagiri-sivasai-dev wants to merge 1 commit into
apache:developfrom
udayagiri-sivasai-dev:FINERACT-1788

Conversation

@udayagiri-sivasai-dev
Copy link
Copy Markdown
Contributor

Description

This PR addresses FINERACT-1788 by replacing native SQL/JdbcTemplate usage in the Notifications read platform service with Spring Data JPA/JPQL repository methods.

Changes made:

  • Added JPQL queries in NotificationMapperRepository.
  • Replaced unread notification checks with repository-based JPQL.
  • Replaced notification read-status update with a repository update query.
  • Replaced notification list fetching with JPQL projection into NotificationData.
  • Removed old JdbcTemplate, RowMapper, and native SQL query code from NotificationReadPlatformServiceImpl.
  • Updated NotificationConfiguration constructor wiring after removing old JDBC dependencies.

Validation performed:

  • Ran spotlessApply.
  • Ran :fineract-provider:compileJava successfully.
  • Verified no JdbcTemplate, RowMapper, nativeQuery, createNativeQuery, or String sql usage remains in the notification module.
  • Ran git diff --check.

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.

1 participant