-
Notifications
You must be signed in to change notification settings - Fork 350
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
Using properties from a shared base class renders invalid queries #1657
Comments
Could you provide a full reproducer, preferable as a Github repository? |
@schauder You can get the code from this site: |
Ouch, that looks like a bad one. Thanks for finding that. Preliminary analysis suggests that somehow select statements generated for different repositories get mixed up with each other. |
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
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
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
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
This got fixed by spring-projects/spring-data-commons#2973 |
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
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
Reopened since the change in commons caused other issue and had to be reverted. |
Since a PersistencePropertyPath does NOT consider it's owner for equality, this is necessary. to distinguish different AggregatePath instances based on a inherited property. Closes #1657
My code:
When run the test method of ApplicationService, I get the error below:
Alternatively, you can get the full reproducer from this site:
https://github.com/JingzhongChen/spring-data-jdbc-3.2.0-rc1-demo
It works in spring-data-jdbc:3.0.0, but it dose not work in spring-data-jdbc:3.2.0-RC1.
How can I fix this issue by any configuration?
The text was updated successfully, but these errors were encountered: