spring-projects / spring-projects/spring-data-commons

Support usage of distinct on properties [DATACMNS-115]

Open
#594 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: repository status: ideal-for-contribution type: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.