Skip to content

SONARJAVA-6537 Implement rule S8948: "@OneToMany" relationships should use "mappedBy" or "@JoinColumn"#5716

Open
NoemieBenard wants to merge 5 commits into
masterfrom
nb/sonarjava-6537-implement-S8948
Open

SONARJAVA-6537 Implement rule S8948: "@OneToMany" relationships should use "mappedBy" or "@JoinColumn"#5716
NoemieBenard wants to merge 5 commits into
masterfrom
nb/sonarjava-6537-implement-S8948

Conversation

@NoemieBenard

Copy link
Copy Markdown
Contributor

No description provided.

@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

SONARJAVA-6537

@NoemieBenard NoemieBenard marked this pull request as ready for review June 30, 2026 08:25
@sonarqube-next

Copy link
Copy Markdown

@romainbrenguier romainbrenguier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@romainbrenguier romainbrenguier Jun 30, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The format for the links in documentation should be: - <source> - <url>[<title>]. In this example the title should be Hibernate ORM User Guide.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants