That constructor form is used by Reactive.
This commit is contained in:
Steve Ebersole 2024-07-31 13:42:20 -05:00
parent 0b964a3f19
commit c1124d46aa
1 changed files with 17 additions and 0 deletions

View File

@ -62,6 +62,23 @@ public class CircularFetchImpl extends AbstractNonJoinedEntityFetch implements B
this.referencedNavigablePath = referencedNavigablePath;
}
/**
* Used from Hibernate Reactive
*/
@SuppressWarnings("unused")
protected CircularFetchImpl(CircularFetchImpl original) {
super(
original.getNavigablePath(),
original.getFetchedMapping(),
original.getFetchParent(),
original.getKeyResult(),
original.getDiscriminatorFetch(),
original.isSelectByUniqueKey()
);
this.timing = original.timing;
this.referencedNavigablePath = original.referencedNavigablePath;
}
@Override
public NavigablePath getReferencedPath() {
return referencedNavigablePath;