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

Review usage of EntityManager.merge #989

Open
amvanbaren opened this issue Sep 19, 2024 · 0 comments
Open

Review usage of EntityManager.merge #989

amvanbaren opened this issue Sep 19, 2024 · 0 comments
Assignees

Comments

@amvanbaren
Copy link
Contributor

As @hoangphamEclipse points out in EclipseFdn/open-vsx.org#2062 (comment), EntityManager.merge updates a JPA entity.

Review the code to determine where merge is used intentionally to update the entity and where it isn't.
Use EntityManager.find or another read operation without side effects to replace the calls to EntityManager.merge where it is used only to get a managed entity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant