Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jakarta persistence module proposal #486

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

otaviojava
Copy link
Contributor

@otaviojava otaviojava commented Feb 24, 2024

Changes

  • Create a Jakarta Persistence Module

Based on this discussion: #477

Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
* @param <T> the type of the primary entity class of the repository.
* @param <K> the type of the Id attribute of the primary entity.
*/
public interface JakartaPersistenceRepository <T, K> extends DataRepository<T, K> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once we agree with persistenceI belive the JakartaPersistence might be fine.

Open for suggestion, I am not good at name proposals

public interface JakartaPersistenceRepository <T, K> extends DataRepository<T, K> {

@Find
T find(K id);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It requires the documentation, but IMHO, we can do it in another PR. It has a lot of changes here.

@njr-11
Copy link
Contributor

njr-11 commented Feb 24, 2024

Otavio - before you get too far along this path, this is not something that we can get into version 1.0. We can look at additional repositories in the next version.

@otaviojava otaviojava added this to the Jakarta Data Future milestone Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants