jakartaee / jakartaee/persistence
Supports create criteria parameter for generic type
- Dominant language
- Java
- Stars
- 267
- Forks
- 78
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 13
Description
```java
ParameterExpression parameter = criteriaBuilder.parameter(List.class, "list");
```
is not type safe, We need add a *Super Type Token* like [TypeReference](https://github.com/FasterXML/jackson-core/blob/514d9c89b9abab426ed4057806e7a99f6c1f7a58/src/main/java/com/fasterxml/jackson/core/type/TypeReference.java)
```java
ParameterExpression> parameter = criteriaBuilder.parameter(new TypeReference>{}, "list");
```
Contributor guide
Research direction
Start by reviewing the CriteriaBuilder parameter API and the linked Jackson TypeReference example to understand the requested generic type representation. Determine the compatible API shape and add coverage for the List example; done means criteria parameters can preserve that generic type safely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100