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

Use DTOs and disable openentityinview #338

Open
mpostelnicu opened this issue Nov 16, 2020 · 0 comments
Open

Use DTOs and disable openentityinview #338

mpostelnicu opened this issue Nov 16, 2020 · 0 comments
Milestone

Comments

@mpostelnicu
Copy link
Contributor

mpostelnicu commented Nov 16, 2020

Use DTOs (with MapStruct) to map to DAOs and connect to database level. This will:

  • remove any hibernate session dependencies from UI
  • allow us to turn openentityinview to off. Openentityinview is considered anti-pattern
  • never get lazy initializer errors in the UI
  • clear separation of persistence and UI logic
  • remove dozer hibernate model - which is currently unmaintained and relies heavily on hibernate specific api
  • aim to be JPA 2.2+ compliant, without specific Hibernate bindings. This will allow us to choose other ERMs than Hibernate, like EclipseLink, DataNucleus, etc...
@mpostelnicu mpostelnicu added this to the 4.x milestone Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant