Closed RD-1-2020 closed 3 months ago
This certainly looks like a bug. But could you please provide a reproducer, preferable as a github repository.
It might be a duplicate of #1734
This certainly looks like a bug. But could you please provide a reproducer, preferable as a github repository.
Okay, thank you for your answer, I will create a repository on GitHub with a reproduction of this problem, and I will send a link soon.
There is a snapshot available that fixes #1692 3.3.0-1692-collection-in-embedded-SNAPSHOT And a PR to go with it: #1773
I assume this issue will be fixed by it as well. If nobody objects I'll close this issue as a duplicate once the PR is merged.
Duplicate of #1692
Hello, after up version to 3.2.0, i have strange problem with my entity.
Pls help me understand, this is bug or my mistake)
Code
Naming all of entities and columns are correct.
My 1 level Entity is:
My 2 level Entity is: table "permissions" has link to "profiles" in column "permissions.profile_id"
And linked entity is:
Problem description
At runtime when spring data jdbc try select ProfileEntity then select PermissionEntity and select PermissionAttributeRef by permission_id where permission_id = profiles.id. What I think is wrong. I think PermissionAttributeRef should be selected by permissions.id, but spring data jdbc select by profiles.id (1 level entity).
Temproary fix
Select ProfileEntity get from entity PermissionEntity.id and then more one select PermissionEntity and get permissionAttributesId in this way always work is correct, but i think this wrong way.
Images from debug
My Thread dump