Skip to content

Commit efb3ce1

Browse files
committed
[HHH-19365]add no guarantee of the data order.
1 parent 7c28e98 commit efb3ce1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ private void executeQuery(SessionFactoryScope scope, boolean criteria, boolean l
112112
final EntityGraph<?> entityGraph = session.getEntityGraph( "test-graph" );
113113
final List<Person> resultList = query.setHint( HINT_SPEC_FETCH_GRAPH, entityGraph ).getResultList();
114114
assertThat( resultList ).hasSize( 2 );
115-
assertThat( resultList.stream().map( p -> p.getAddress().getId() ) ).containsExactly( 1L, 2L );
115+
// No order by, there is no guarantee of the data order.
116+
assertThat( resultList.stream().map( p -> p.getAddress().getId() ) ).contains( 1L, 2L );
116117
inspector.assertExecutedCount( 1 );
117118
inspector.assertNumberOfOccurrenceInQuery( 0, "join", where ? 2 : 1 );
118119
} );

0 commit comments

Comments
 (0)