Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Use direct field access instead of getter invocation f.e.to prevent lazy loading with JPA entities #56

Open
tobiasstamann opened this issue Nov 3, 2015 · 0 comments

Comments

@tobiasstamann
Copy link
Member

At the moment the preferred way is to use getters to access the contents.
This is suboptimal for JPA entities, because lazy loading might be triggered and a huge tree might be traversed.

To circumvent this the context logger could generally access the fields directly and prohibit getter calls for entites.

@tobiasstamann tobiasstamann changed the title Detect and handle JPA Entities gently Use direct field access instead of getter invocation f.e.to prevent lazy loading with JPA entities Nov 4, 2015
tobiasstamann pushed a commit to tobiasstamann/contextlogger that referenced this issue Nov 9, 2015
…om field.

This should prevent lazy loading for JPA entities.

Additionally fixed NPE related to ignored values.
tobiasstamann added a commit that referenced this issue Nov 9, 2015
[#56] Use field access over usage of getters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant