spring-projects / spring-data-relational

Spring Data Relational. Home of Spring Data JDBC and Spring Data R2DBC.
https://spring.io/projects/spring-data-jdbc
Apache License 2.0
737 stars 339 forks source link

Fix usage of wrong id value in related selects #1810

Closed schauder closed 1 month ago

schauder commented 1 month ago

In an aggregate A->B-Collection a select gets executed for loading Collection. That select used the wrong ID when B had an ID with the same name as A.

This is now fixed.

Closes #1802

charliemidtlyng commented 1 month ago

This is an important fix for us @ma10s - in order to upgrade https://github.com/navikt/familie-tilbake/

Fixing our issue with the relations A->B[]->C->D[] where the content of D is empty after a fetch.

mp911de commented 1 month ago

That's merged, polished, and backported now.