Skip to content

Commit a12b803

Browse files
rfelcmanlukasj
authored andcommitted
Queries created with criteria api with many joins - fix
Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
1 parent 79a21f2 commit a12b803

File tree

1 file changed

+4
-4
lines changed
  • jpa/org.eclipse.persistence.jpa/src/main/java/org/eclipse/persistence/internal/jpa/querydef

1 file changed

+4
-4
lines changed

jpa/org.eclipse.persistence.jpa/src/main/java/org/eclipse/persistence/internal/jpa/querydef/FromImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2024 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
@@ -17,7 +17,7 @@
1717
package org.eclipse.persistence.internal.jpa.querydef;
1818

1919
import java.util.ArrayList;
20-
import java.util.HashSet;
20+
import java.util.LinkedHashSet;
2121
import java.util.List;
2222
import java.util.Set;
2323
import java.util.Stack;
@@ -76,8 +76,8 @@ public class FromImpl<Z, X> extends PathImpl<X> implements jakarta.persistence.
7676
public <T> FromImpl(Path<Z> parentPath, ManagedType managedType, Metamodel metamodel, Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, Bindable<T> modelArtifact) {
7777
super(parentPath, metamodel, javaClass, expressionNode, modelArtifact);
7878
this.managedType = managedType;
79-
this.joins = new HashSet<Join<X, ?>>();
80-
this.fetches = new HashSet<Fetch<X, ?>>();
79+
this.joins = new LinkedHashSet<>();
80+
this.fetches = new LinkedHashSet<>();
8181
}
8282

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

0 commit comments

Comments
 (0)