Skip to content

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

Closed
@amundsor

Description

@amundsor

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 ?

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions