Skip to content

Commit

Permalink
Queries created with criteria api with many joins - fix
Browse files Browse the repository at this point in the history
Signed-off-by: Radek Felcman <[email protected]>
  • Loading branch information
rfelcman authored and lukasj committed May 7, 2024
1 parent 4abffe4 commit c75d2be
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
Expand All @@ -17,7 +17,7 @@
package org.eclipse.persistence.internal.jpa.querydef;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.Stack;
Expand Down Expand Up @@ -76,8 +76,8 @@ public class FromImpl<Z, X> extends PathImpl<X> implements javax.persistence.cr
public <T> FromImpl(Path<Z> parentPath, ManagedType managedType, Metamodel metamodel, Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, Bindable<T> modelArtifact) {
super(parentPath, metamodel, javaClass, expressionNode, modelArtifact);
this.managedType = managedType;
this.joins = new HashSet<Join<X, ?>>();
this.fetches = new HashSet<Fetch<X, ?>>();
this.joins = new LinkedHashSet<>();
this.fetches = new LinkedHashSet<>();
}

public <T> FromImpl(Path<Z> parentPath, ManagedType managedType, Metamodel metamodel, Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, Bindable<T> modelArtifact, FromImpl correlatedParent) {
Expand Down

0 comments on commit c75d2be

Please sign in to comment.