Skip to content

One-to-many relation: ResultSet contains ... multiple times #1073

@zb226

Description

@zb226

Whenever an element class of an aggregate has its own field for the ID that is also used as keyColumn for the one-to-many relationship to its aggregate root, access to these elements will cause duplicated columns in the generated SQL and consequently warnings like:

ResultSet contains id multiple times

The problem is described in detail in this StackOverflow question.

Here is a small project repo to demonstrate the problem.

Desired behaviour: No warnings, the column accesses should probably be "squashed".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions