Skip to content

[205][Java] Force usage of FetchType LAZY for collections on JPA entities - #325

Closed
AndreBraga1 wants to merge 1 commit into
green-code-initiative:mainfrom
AndreBraga1:205-Java
Closed

[205][Java] Force usage of FetchType LAZY for collections on JPA entities#325
AndreBraga1 wants to merge 1 commit into
green-code-initiative:mainfrom
AndreBraga1:205-Java

Conversation

@AndreBraga1

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

This PR has been automatically marked as stale because it has no activity for 60 days.
Please add a comment if you want to keep the issue open. Thank you for your contributions!

@dedece35

dedece35 commented Aug 7, 2026

Copy link
Copy Markdown
Member

Hi @AndreBraga1

several PR have worked on this same subject (FetchType Lazy instead of Eager for OneToMany et ManyToMany relations).

After worked on a complete analysis to check if this rule is relevant :

  • first, I found that the rule already exists in SonarQube as a built-in rule : S6904
  • secondly, no proof was found to check relevancy
  • thirdly, I decided to launch an analysis with EnergyTracer tool which can do real measures

Thus I created a new PR to :

  • add this analysis
  • clean all old references to this same subject

Here is the PR : #487

Sorry, but I have to close this PR.
thank you for the work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants