jakartaee / jakartaee/persistence
Add more convenience methods to PersistenceConfiguration
- Dominant language
- Java
- Stars
- 268
- Forks
- 78
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 13
Description
I found there only provides a `managedClass(Class class)` method in the [`PersistenceConfiguration`](https://github.com/jakartaee/persistence/blob/master/api/src/main/java/jakarta/persistence/PersistenceConfiguration.java), but does not provides methods to add a collection of classes.
eg.
```java
PersistenceConfiguration managedClasses(Class classes...)
PersistenceConfiguration managedClasses(Collection> classes)
// add all jpa managed classes in the package located by the specified class
PersistenceConfiguration managedPackage(Class class)
PersistenceConfiguration managedPackages(Class classes...)
PersistenceConfiguration managedPackages(Collection> classes)
```
Contributor guide
Research direction
Start with api/src/main/java/jakarta/persistence/PersistenceConfiguration.java and review the existing managedClass(Class class) method. Clarify the intended behavior and API conventions for collection, varargs, and package-management methods; the work is done when the agreed convenience methods are defined with consistent 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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100