spring-projects / spring-projects/spring-data-commons
Support usage of distinct on properties [DATACMNS-115]
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 838
- Forks
- 730
- PR merge metrics
- No merged PRs in 30d
Description
Thomas Hackel opened DATACMNS-115 and commented
Allow to use a method like:
List<String> findDistinctName();
SQL Equivalent:
select distinct(name) from foo;
Also additional where clause should work too:
List<String> findDistinctNameByLastName(String lastName);
Issue Links:
- DATACMNS-89 Support for projections in repository query methods
("depends on")
5 votes, 7 watchers
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the repository query methods described in the issue and review the linked DATACMNS-89 projection work, since the request depends on it. Check how the examples map to the stated SQL equivalents, including the additional last-name condition. Done means both distinct property queries are supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100