jakartaee / jakartaee/persistence
Introduce methods to get a specific option from a Query/EntityHandler
- Dominant language
- Java
- Stars
- 267
- Forks
- 78
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 13
Description
Introduce methods to get a specific option on the following interfaces:
- `jakarta.persistence.TypedQuery`
- `jakarta.persistence.Statement`
- `jakarta.persistence.StoredProcedureQuery`
and
- `jakarta.persistence.EntityManager`
- `jakarta.persistence.EntityAgent`
Currently, these interfaces provide the user with a way to get all options at once: `Set getOptions();` Let's add:
```java
T getOption(Class optionType);
```
where the user can ask for a specific option rather than all at once.
Contributor guide
Research direction
Locate the jakarta.persistence.TypedQuery, Statement, StoredProcedureQuery, EntityManager, and EntityAgent interfaces, then inspect their existing getOptions() declarations and implementations. Add the specified getOption(Class optionType) API consistently across the listed interfaces, and verify that each interface and its implementations expose the requested option behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend-api-design, database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100