-
Notifications
You must be signed in to change notification settings - Fork 356
Nested @MappedCollection is not loaded correctly, unless it is a collection #1806
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
Comments
Why are you using @MappedCollection for val leg: Leg? Is this some way of using @MappedCollection I'm not aware of? I don't use any annotation for 1:1 relations in Java. Your issue might be related to my issue #1802. The table structures and the versions that work and don't work are the same. |
@vpmuli Whether the relation is 1:1 or 1:N you only really need it to specify the foreign key name, in my case booking_id as opposed to the default booking. |
This seems indeed to be a duplicate of #1802. There is a PR and a matching snapshot available. Please give that a try. If this does not resolve the issue, please let us know. Otherwise the issue will get closed. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
This problem was introduced in spring-data-jdbc version 3.2.0 It is still present in version 3.2.6 and 3.3.0.
It works correctly for versions 3.1.x
In this example the booking from the find operation has an empty set for payments. and the test fails. The test completes if spring-boot-starter-data-jdbc is dowgraded to 3.1.12 or val leg: Leg is changed to val leg: Set
The text was updated successfully, but these errors were encountered: