jakartaee / jakartaee/persistence

Add more convenience methods to PersistenceConfiguration

Open
#621 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.