SONARJAVA-6537 Implement rule S8948: "@OneToMany" relationships should use "mappedBy" or "@JoinColumn"#5716
Open
NoemieBenard wants to merge 5 commits into
Open
SONARJAVA-6537 Implement rule S8948: "@OneToMany" relationships should use "mappedBy" or "@JoinColumn"#5716NoemieBenard wants to merge 5 commits into
NoemieBenard wants to merge 5 commits into
Conversation
Contributor
|
romainbrenguier
approved these changes
Jun 30, 2026
romainbrenguier
left a comment
Contributor
There was a problem hiding this comment.
There are a couple of changes to make on the rspec side, otherwise it looks good.
| <li>Hibernate ORM User Guide - Associations - <a | ||
| href="https://docs.jboss.org/hibernate/orm/6.2/userguide/html_single/Hibernate_User_Guide.html#associations">Comprehensive guide to Hibernate | ||
| associations including one-to-many mappings</a></li> | ||
| <li>Baeldung - JPA @OneToMany Annotation - <a href="https://www.baeldung.com/jpa-one-to-many">Practical tutorial on using @OneToMany with mappedBy |
Contributor
There was a problem hiding this comment.
I get a page not found on this link
| <li>Jakarta Persistence Specification - OneToMany - <a | ||
| href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1.html#a11914">Official specification for @OneToMany annotation | ||
| and its default behavior</a></li> | ||
| <li>Hibernate ORM User Guide - Associations - <a |
Contributor
There was a problem hiding this comment.
The format for the links in documentation should be: - <source> - <url>[<title>]. In this example the title should be Hibernate ORM User Guide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




No description provided.