Skip to content

Commit 52683ce

Browse files
baranyitbeikov
authored andcommitted
HHH-19207 - fix the codestyle issues
1 parent 0922fb1 commit 52683ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/entitygraph/FetchGraphCollectionOrderByAndCriteriaJoinTest.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* SPDX-License-Identifier: LGPL-2.1-or-later
3+
* Copyright Red Hat Inc. and Hibernate Authors
4+
*/
15
package org.hibernate.orm.test.entitygraph;
26

37
import jakarta.persistence.CascadeType;
@@ -105,7 +109,7 @@ private void executeTest(SessionFactoryScope scope, boolean directJoin, boolean
105109
}
106110

107111
// Add all defined predicates to the criteria query
108-
criteriaQuery.where( builder.and( predicates ) );
112+
criteriaQuery.where( builder.and( predicates.toArray(new Predicate[0]) ) );
109113

110114
// Set some default root ordering (not required for the test case)
111115
criteriaQuery.orderBy( builder.asc( root.get( "id" ) ) );

0 commit comments

Comments
 (0)