@@ -278,6 +278,26 @@ final void testElementCollection2() {
278
278
assertThat (rsql , count , is (4L ));
279
279
}
280
280
281
+ @ Test
282
+ final void testElementCollection1WithJoinHints () {
283
+ final Map <String , JoinType > joinHints = Map .of ("Company.tags" , JoinType .LEFT );
284
+ final String rsql = "tags!=tech,tags=na=" ;
285
+ final List <Company > companies = companyRepository .findAll (toSpecification (rsql , null , joinHints ));
286
+ final long count = companies .size ();
287
+ log .info ("rsql: {} -> count: {}" , rsql , count );
288
+ assertThat (rsql , count , is (4L ));
289
+ }
290
+
291
+ @ Test
292
+ final void testElementCollection2WithJoinHints () {
293
+ final Map <String , JoinType > joinHints = Map .of ("Company.bigTags" , JoinType .LEFT );
294
+ final String rsql = "bigTags.tag!=tech,bigTags.tag=na=" ;
295
+ final List <Company > companies = companyRepository .findAll (toSpecification (rsql , null , joinHints ));
296
+ final long count = companies .size ();
297
+ log .info ("rsql: {} -> count: {}" , rsql , count );
298
+ assertThat (rsql , count , is (4L ));
299
+ }
300
+
281
301
@ Test
282
302
final void testToComplexMultiValueMap () {
283
303
String rsql = "sites.trunks.id==2,id=na=2,company.id=='2',id=na=3,name==''" ;
0 commit comments