File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test/loading/multiLoad Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 12
12
import org .hibernate .testing .orm .domain .StandardDomainModel ;
13
13
import org .hibernate .testing .orm .domain .gambit .BasicEntity ;
14
14
import org .hibernate .testing .orm .domain .gambit .EntityWithAggregateId ;
15
+ import org .hibernate .testing .orm .domain .gambit .SimpleEntity ;
15
16
import org .hibernate .testing .orm .junit .DomainModel ;
17
+ import org .hibernate .testing .orm .junit .JiraKey ;
16
18
import org .hibernate .testing .orm .junit .SessionFactory ;
17
19
import org .hibernate .testing .orm .junit .SessionFactoryFunctionalTesting ;
18
20
import org .hibernate .testing .orm .junit .SessionFactoryScope ;
@@ -44,6 +46,18 @@ public void testBasicEntitySimpleLoad(SessionFactoryScope scope) {
44
46
);
45
47
}
46
48
49
+ @ Test
50
+ @ JiraKey ( "HHH-17201" )
51
+ public void testSimpleEntityUnOrderedMultiLoad (SessionFactoryScope scope ) {
52
+ scope .inTransaction (
53
+ session -> {
54
+ List <Integer > idList = List .of ( 0 , 1 );
55
+ session .byMultipleIds ( SimpleEntity .class )
56
+ .enableOrderedReturn ( false ).multiLoad ( idList );
57
+ }
58
+ );
59
+ }
60
+
47
61
@ Test
48
62
public void testBasicEntityOrderedLoad (SessionFactoryScope scope ) {
49
63
scope .inTransaction (
You can’t perform that action at this time.
0 commit comments