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

Re-occuring issue: One-to-many relation: ResultSet contains ... multiple times #1865

Closed
amundsor opened this issue Aug 23, 2024 · 4 comments
Closed
Assignees
Labels
type: regression A regression from a previous release

Comments

@amundsor
Copy link

I dont know if this has been the case all the way, or if it is just the logging which are stricter.
After we upgraded to lastest version of Spring we are getting alot of: "One-to-many relation: ResultSet contains ... multiple times"
This comes from RowDocumentResultSetExtractor#79.
log.warn(DUPLICATE_COLUMN_WARNING, columnName, i);

We have a class Family containing children: Map<UUID, Child> where the family_key is also a member of the Child-object.
There are ofcourse multiple ways to solve this, but from the top of my head I don't think this should create a warning.

Perhaps there is a good reason for it to work this way ?

@amundsor
Copy link
Author

Has been flagged before: Github Issue

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 23, 2024
@schauder
Copy link
Contributor

Do you still have this issue in 3.x?

If so, please provide a Minimimal Reproducable Example, preferable as a Github repository. Make sure to include the database, either as an in memory database or if that is not possible using Testcontainers.

@schauder schauder added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 23, 2024
@schauder schauder self-assigned this Aug 23, 2024
@schauder schauder removed the status: waiting-for-feedback We need additional information before we can continue label Aug 28, 2024
@schauder
Copy link
Contributor

I was able to create a reproducer. Will investigate.

@schauder schauder added the type: regression A regression from a previous release label Aug 28, 2024
schauder added a commit that referenced this issue Aug 29, 2024
schauder added a commit that referenced this issue Aug 29, 2024
@schauder schauder added this to the 3.2.10 (2023.1.10) milestone Aug 29, 2024
@ashramsey
Copy link

This warning started happening to our app when we bumped gradle springBootVersion=3.2.6 to springBootVersion=3.2.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: regression A regression from a previous release
Projects
None yet
Development

No branches or pull requests

4 participants