HHH-17045 Add row-id result to EntityJoinedFetchInitializer

This commit is contained in:
Marco Belladelli 2023-08-24 15:51:25 +02:00
parent d09237107e
commit 8d82d29c09
No known key found for this signature in database
GPG Key ID: D1D0C3030AE3AA35
2 changed files with 5 additions and 1 deletions

View File

@ -104,6 +104,7 @@ public class EntityFetchJoinedImpl extends AbstractNonLazyEntityFetch {
creationState.determineEffectiveLockMode( sourceAlias ),
notFoundAction,
keyResult,
entityResult.getRowIdResult(),
entityResult.getIdentifierFetch(),
entityResult.getDiscriminatorFetch(),
creationState
@ -121,6 +122,7 @@ public class EntityFetchJoinedImpl extends AbstractNonLazyEntityFetch {
LockMode lockMode,
NotFoundAction notFoundAction,
DomainResult<?> keyResult,
DomainResult<Object> rowIdResult,
Fetch identifierFetch,
Fetch discriminatorFetch,
AssemblerCreationState creationState) {
@ -131,6 +133,7 @@ public class EntityFetchJoinedImpl extends AbstractNonLazyEntityFetch {
lockMode,
notFoundAction,
keyResult,
rowIdResult,
identifierFetch,
discriminatorFetch,
creationState

View File

@ -42,6 +42,7 @@ public class EntityJoinedFetchInitializer extends AbstractEntityInitializer {
LockMode lockMode,
NotFoundAction notFoundAction,
DomainResult<?> keyResult,
DomainResult<Object> rowIdResult,
Fetch identifierFetch,
Fetch discriminatorFetch,
AssemblerCreationState creationState) {
@ -51,7 +52,7 @@ public class EntityJoinedFetchInitializer extends AbstractEntityInitializer {
lockMode,
identifierFetch,
discriminatorFetch,
null,
rowIdResult,
creationState
);
this.referencedFetchable = referencedFetchable;