Decathlon / Decathlon/ara

Refactor queries

Open
#252 0 comments 0 reactions 0 assignees View on GitHub
Feature Request
Dominant language
Java
Stars
80
Forks
17
PR merge metrics
No merged PRs in 30d

Description

**What it's the actual situation on ARA ?**
This is more a code enhancement (refactoring): a lot of repository classes (XXXRepository.java) use the `@Query` annotation.

**Describe the solution you'd like**
This is not useful and add unnecessary code: it can directly be replaced (annotation to remove) by renaming correctly the method. See https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#jpa.query-methods

Please note that integration tests are expected to make sure no regression has been introduced.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the XXXRepository.java classes that use @Query and read the linked Spring Data JPA query-method reference first. Review the affected method names, then run the integration tests; done means the repository queries work without regressions after the refactoring.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, database
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.