Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Use orm metamodel when querying DB. #39

Open
lealceldeiro opened this issue Apr 20, 2020 · 0 comments
Open

Use orm metamodel when querying DB. #39

lealceldeiro opened this issue Apr 20, 2020 · 0 comments
Assignees
Labels
enhancement investigation server Issues related to the backend.

Comments

@lealceldeiro
Copy link
Owner

Is your feature request related to a problem? Please describe.

In classes such as PostgreSQLBAuthorizationDAO, when querying the DB, the arguments for the entity field names are being hardcoded, i.e.: eUsername.

Describe the solution you'd like

This should be handled, for example, using an entity metamodel.

Additional context

Some quick info can be found around there, see https://stackoverflow.com/questions/3037593/how-to-generate-the-jpa-entity-metamodel and https://www.baeldung.com/hibernate-criteria-queries-metamodel

@lealceldeiro lealceldeiro added enhancement server Issues related to the backend. investigation labels Apr 20, 2020
@lealceldeiro lealceldeiro self-assigned this Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement investigation server Issues related to the backend.
Projects
None yet
Development

No branches or pull requests

1 participant