jakartaee / jakartaee/persistence

Metamodel should expose methods to determine *all* JPA-handled types

Open
#138 4 comments 0 reactions 0 assignees View on GitHub
Priority: Major Type: Improvement
Dominant language
Java
Stars
268
Forks
78
Avg merge
1d 6h
Merged PRs (30d)
13

Description

JPA has always had a Metamodel API to find out about managed entities, managed superclasses and embeddable type. With the introduction of attribute converters, other types get under control of the JPA provider, too. E.g. depending on whether an `AttributeConverter` is registered for it or not, a `LocalDateTime` (or any other type) could be effectively become a JPA understood "primitive" type.

Currently there's no way for clients to use the Metamodel API to find out about that fact that there certain types are JPA-understood ones. It'd be great if that could be found out.
#### Affected Versions
[2.1.1]

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the JPA Metamodel API and the AttributeConverter behavior described in the issue, especially how managed entities, managed superclasses, embeddable types, and converted types are represented. Define what clients must be able to query for all JPA-handled types, then verify that the proposed API covers converted types such as LocalDateTime as well as existing managed types.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.