jakartaee / jakartaee/persistence

CriteriaBuilder countDistinct() should take multiple expressions

Open
#157 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
268
Forks
78
Avg merge
1d 6h
Merged PRs (30d)
13

Description

CriteriaBuilder

`Expression countDistinct(Expression x)`

It should take multiple expressions.

```
Expression countDistinct(Expression ... expressions)
Expression countDistinct(List> expressions)
```

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 CriteriaBuilder entry point and inspect the existing countDistinct(Expression x) API and its compatibility constraints. Confirm how multiple expressions should be represented using the proposed varargs and List signatures; done means the API supports both forms consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.