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

AbstractPersistentProperty now considers the owner for equals. #2973

Closed

Conversation

schauder
Copy link
Contributor

@schauder schauder commented Nov 8, 2023

This makes a difference when a property is declared in a superclass of two entities.
In such a case the property is the same, but the owner is different.

Closes #2972
See spring-projects/spring-data-relational#1657

As discussed yesterday I build Spring Data JPA and Spring Data Rest based on this change.
The builds ran without a problem.

I also verify that it actually resolves spring-projects/spring-data-relational#1657

@schauder schauder requested a review from mp911de November 8, 2023 08:19
This makes a difference when a property is declared in a superclass of two entities.
In such a case the property is the same, but the owner is different.

Closes #2972
See spring-projects/spring-data-relational#1657
@schauder schauder force-pushed the issue/relational-1657-bad-cached-aggregate-path branch from 1687ac3 to 213d89d Compare November 8, 2023 08:26
@mp911de mp911de requested a review from odrotbohm November 8, 2023 09:11
@mp911de
Copy link
Member

mp911de commented Nov 8, 2023

Please also backport to 3.1.x

@odrotbohm
Copy link
Member

As per our conversation, LGTM.

schauder added a commit that referenced this pull request Nov 8, 2023
This makes a difference when a property is declared in a superclass of two entities.
In such a case the property is the same, but the owner is different.

Closes #2972
Original pull request #2973
See spring-projects/spring-data-relational#1657
schauder added a commit that referenced this pull request Nov 8, 2023
This makes a difference when a property is declared in a superclass of two entities.
In such a case the property is the same, but the owner is different.

Closes #2972
Original pull request #2973
See spring-projects/spring-data-relational#1657
@schauder
Copy link
Contributor Author

schauder commented Nov 8, 2023

Merged and backported to 3.1.x

@schauder schauder closed this Nov 8, 2023
schauder added a commit that referenced this pull request Nov 12, 2023
This reverts commit 633d125.

The change caused build failures for Spring Data JDBC.

See #2972
Original pull request #2973
See spring-projects/spring-data-relational#1657
schauder added a commit that referenced this pull request Nov 12, 2023
This reverts commit 93913b0.

The change caused build failures for Spring Data JDBC.

See #2972
Original pull request #2973
See spring-projects/spring-data-relational#1657
@mp911de mp911de added the type: bug A general bug label Nov 4, 2024
@mp911de mp911de deleted the issue/relational-1657-bad-cached-aggregate-path branch November 4, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
3 participants