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

Find annotation value to select the entity #30901

Open
njr-11 opened this issue Feb 28, 2025 · 0 comments
Open

Find annotation value to select the entity #30901

njr-11 opened this issue Feb 28, 2025 · 0 comments
Labels
Epic Used to track Feature Epics that are following the UFO process story team:Zombie Apocalypse

Comments

@njr-11
Copy link
Contributor

njr-11 commented Feb 28, 2025

User story:
"As a user of Jakarta Data in Liberty, I would like to explicitly identify the entity of a Find method so that it can be free to return non-entity values."

In Data 1.0, you could only return entities from Find methods and so the entity type could always be inferred.
In Data 1.1, it is possible to return subsets of the attributes of entities, so a mechanism for identifying the entity type was introduced: adding the entity type as the value of the Find annotation.

Other detail:

The Find annotation value can now be used to discover entity types.

The CWWKD1001.no.primary.entity message will continue to be useful in some cases, but a second message will need to be created that can be used when there is a Find annotation, that also takes into account adding the entity class as a recommended solution (probably the top recommendation).

@njr-11 njr-11 added story team:Zombie Apocalypse Epic Used to track Feature Epics that are following the UFO process labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Used to track Feature Epics that are following the UFO process story team:Zombie Apocalypse
Projects
None yet
Development

No branches or pull requests

1 participant