@@ -106,7 +106,7 @@ void setUp() {
106
106
dataAccessStrategy );
107
107
}
108
108
109
- @ Test // gh -282
109
+ @ Test // GH -282
110
110
void createsQueryToFindAllEntitiesByStringAttribute () throws Exception {
111
111
112
112
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstName" , String .class );
@@ -119,7 +119,7 @@ void createsQueryToFindAllEntitiesByStringAttribute() throws Exception {
119
119
.where (TABLE + ".first_name = $1" );
120
120
}
121
121
122
- @ Test // gh -282
122
+ @ Test // GH -282
123
123
void createsQueryWithIsNullCondition () throws Exception {
124
124
125
125
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstName" , String .class );
@@ -132,7 +132,7 @@ void createsQueryWithIsNullCondition() throws Exception {
132
132
.where (TABLE + ".first_name IS NULL" );
133
133
}
134
134
135
- @ Test // gh -282
135
+ @ Test // GH -282
136
136
void createsQueryWithLimitForExistsProjection () throws Exception {
137
137
138
138
R2dbcQueryMethod queryMethod = getQueryMethod ("existsByFirstName" , String .class );
@@ -145,7 +145,7 @@ void createsQueryWithLimitForExistsProjection() throws Exception {
145
145
.where (TABLE + ".first_name = $1 LIMIT 1" );
146
146
}
147
147
148
- @ Test // gh -282
148
+ @ Test // GH -282
149
149
void createsQueryToFindAllEntitiesByTwoStringAttributes () throws Exception {
150
150
151
151
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByLastNameAndFirstName" , String .class , String .class );
@@ -159,7 +159,7 @@ void createsQueryToFindAllEntitiesByTwoStringAttributes() throws Exception {
159
159
.where (TABLE + ".last_name = $1 AND (" + TABLE + ".first_name = $2)" );
160
160
}
161
161
162
- @ Test // gh -282
162
+ @ Test // GH -282
163
163
void createsQueryToFindAllEntitiesByOneOfTwoStringAttributes () throws Exception {
164
164
165
165
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByLastNameOrFirstName" , String .class , String .class );
@@ -173,7 +173,7 @@ void createsQueryToFindAllEntitiesByOneOfTwoStringAttributes() throws Exception
173
173
.where (TABLE + ".last_name = $1 OR (" + TABLE + ".first_name = $2)" );
174
174
}
175
175
176
- @ Test // gh -282, gh -349
176
+ @ Test // GH -282, GH -349
177
177
void createsQueryToFindAllEntitiesByDateAttributeBetween () throws Exception {
178
178
179
179
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByDateOfBirthBetween" , Date .class , Date .class );
@@ -195,7 +195,7 @@ void createsQueryToFindAllEntitiesByDateAttributeBetween() throws Exception {
195
195
verify (bindTarget , times (1 )).bind (1 , to );
196
196
}
197
197
198
- @ Test // gh -282
198
+ @ Test // GH -282
199
199
void createsQueryToFindAllEntitiesByIntegerAttributeLessThan () throws Exception {
200
200
201
201
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByAgeLessThan" , Integer .class );
@@ -209,7 +209,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeLessThan() throws Exception
209
209
.where (TABLE + ".age < $1" );
210
210
}
211
211
212
- @ Test // gh -282
212
+ @ Test // GH -282
213
213
void createsQueryToFindAllEntitiesByIntegerAttributeLessThanEqual () throws Exception {
214
214
215
215
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByAgeLessThanEqual" , Integer .class );
@@ -223,7 +223,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeLessThanEqual() throws Excep
223
223
.where (TABLE + ".age <= $1" );
224
224
}
225
225
226
- @ Test // gh -282
226
+ @ Test // GH -282
227
227
void createsQueryToFindAllEntitiesByIntegerAttributeGreaterThan () throws Exception {
228
228
229
229
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByAgeGreaterThan" , Integer .class );
@@ -237,7 +237,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeGreaterThan() throws Excepti
237
237
.where (TABLE + ".age > $1" );
238
238
}
239
239
240
- @ Test // gh -282
240
+ @ Test // GH -282
241
241
void createsQueryToFindAllEntitiesByIntegerAttributeGreaterThanEqual () throws Exception {
242
242
243
243
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByAgeGreaterThanEqual" , Integer .class );
@@ -251,7 +251,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeGreaterThanEqual() throws Ex
251
251
.where (TABLE + ".age >= $1" );
252
252
}
253
253
254
- @ Test // gh -282
254
+ @ Test // GH -282
255
255
void createsQueryToFindAllEntitiesByDateAttributeAfter () throws Exception {
256
256
257
257
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByDateOfBirthAfter" , Date .class );
@@ -265,7 +265,7 @@ void createsQueryToFindAllEntitiesByDateAttributeAfter() throws Exception {
265
265
.where (TABLE + ".date_of_birth > $1" );
266
266
}
267
267
268
- @ Test // gh -282
268
+ @ Test // GH -282
269
269
void createsQueryToFindAllEntitiesByDateAttributeBefore () throws Exception {
270
270
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByDateOfBirthBefore" , Date .class );
271
271
PartTreeR2dbcQuery r2dbcQuery = new PartTreeR2dbcQuery (queryMethod , operations , r2dbcConverter , dataAccessStrategy );
@@ -278,7 +278,7 @@ void createsQueryToFindAllEntitiesByDateAttributeBefore() throws Exception {
278
278
.where (TABLE + ".date_of_birth < $1" );
279
279
}
280
280
281
- @ Test // gh -282
281
+ @ Test // GH -282
282
282
void createsQueryToFindAllEntitiesByIntegerAttributeIsNull () throws Exception {
283
283
284
284
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByAgeIsNull" );
@@ -292,7 +292,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeIsNull() throws Exception {
292
292
.where (TABLE + ".age IS NULL" );
293
293
}
294
294
295
- @ Test // gh -282
295
+ @ Test // GH -282
296
296
void createsQueryToFindAllEntitiesByIntegerAttributeIsNotNull () throws Exception {
297
297
298
298
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByAgeIsNotNull" );
@@ -306,7 +306,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeIsNotNull() throws Exception
306
306
.where (TABLE + ".age IS NOT NULL" );
307
307
}
308
308
309
- @ Test // gh -282
309
+ @ Test // GH -282
310
310
void createsQueryToFindAllEntitiesByStringAttributeLike () throws Exception {
311
311
312
312
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstNameLike" , String .class );
@@ -320,7 +320,7 @@ void createsQueryToFindAllEntitiesByStringAttributeLike() throws Exception {
320
320
.where (TABLE + ".first_name LIKE $1" );
321
321
}
322
322
323
- @ Test // gh -282
323
+ @ Test // GH -282
324
324
void createsQueryToFindAllEntitiesByStringAttributeNotLike () throws Exception {
325
325
326
326
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstNameNotLike" , String .class );
@@ -334,7 +334,7 @@ void createsQueryToFindAllEntitiesByStringAttributeNotLike() throws Exception {
334
334
.where (TABLE + ".first_name NOT LIKE $1" );
335
335
}
336
336
337
- @ Test // gh -282
337
+ @ Test // GH -282
338
338
void createsQueryToFindAllEntitiesByStringAttributeStartingWith () throws Exception {
339
339
340
340
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstNameStartingWith" , String .class );
@@ -348,7 +348,7 @@ void createsQueryToFindAllEntitiesByStringAttributeStartingWith() throws Excepti
348
348
.where (TABLE + ".first_name LIKE $1" );
349
349
}
350
350
351
- @ Test // gh -282
351
+ @ Test // GH -282
352
352
void appendsLikeOperatorParameterWithPercentSymbolForStartingWithQuery () throws Exception {
353
353
354
354
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstNameStartingWith" , String .class );
@@ -361,7 +361,7 @@ void appendsLikeOperatorParameterWithPercentSymbolForStartingWithQuery() throws
361
361
verify (bindTarget , times (1 )).bind (0 , "Jo%" );
362
362
}
363
363
364
- @ Test // gh -282
364
+ @ Test // GH -282
365
365
void createsQueryToFindAllEntitiesByStringAttributeEndingWith () throws Exception {
366
366
367
367
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstNameEndingWith" , String .class );
@@ -375,7 +375,7 @@ void createsQueryToFindAllEntitiesByStringAttributeEndingWith() throws Exception
375
375
.where (TABLE + ".first_name LIKE $1" );
376
376
}
377
377
378
- @ Test // gh -282
378
+ @ Test // GH -282
379
379
void prependsLikeOperatorParameterWithPercentSymbolForEndingWithQuery () throws Exception {
380
380
381
381
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstNameEndingWith" , String .class );
@@ -388,7 +388,7 @@ void prependsLikeOperatorParameterWithPercentSymbolForEndingWithQuery() throws E
388
388
verify (bindTarget , times (1 )).bind (0 , "%hn" );
389
389
}
390
390
391
- @ Test // gh -282
391
+ @ Test // GH -282
392
392
void createsQueryToFindAllEntitiesByStringAttributeContaining () throws Exception {
393
393
394
394
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstNameContaining" , String .class );
@@ -402,7 +402,7 @@ void createsQueryToFindAllEntitiesByStringAttributeContaining() throws Exception
402
402
.where (TABLE + ".first_name LIKE $1" );
403
403
}
404
404
405
- @ Test // gh -282
405
+ @ Test // GH -282
406
406
void wrapsLikeOperatorParameterWithPercentSymbolsForContainingQuery () throws Exception {
407
407
408
408
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstNameContaining" , String .class );
@@ -415,7 +415,7 @@ void wrapsLikeOperatorParameterWithPercentSymbolsForContainingQuery() throws Exc
415
415
verify (bindTarget , times (1 )).bind (0 , "%oh%" );
416
416
}
417
417
418
- @ Test // gh -282
418
+ @ Test // GH -282
419
419
void createsQueryToFindAllEntitiesByStringAttributeNotContaining () throws Exception {
420
420
421
421
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstNameNotContaining" , String .class );
@@ -429,7 +429,7 @@ void createsQueryToFindAllEntitiesByStringAttributeNotContaining() throws Except
429
429
.where (TABLE + ".first_name NOT LIKE $1" );
430
430
}
431
431
432
- @ Test // gh -282
432
+ @ Test // GH -282
433
433
void wrapsLikeOperatorParameterWithPercentSymbolsForNotContainingQuery () throws Exception {
434
434
435
435
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstNameNotContaining" , String .class );
@@ -442,7 +442,7 @@ void wrapsLikeOperatorParameterWithPercentSymbolsForNotContainingQuery() throws
442
442
verify (bindTarget , times (1 )).bind (0 , "%oh%" );
443
443
}
444
444
445
- @ Test // gh -282
445
+ @ Test // GH -282
446
446
void createsQueryToFindAllEntitiesByIntegerAttributeWithDescendingOrderingByStringAttribute () throws Exception {
447
447
448
448
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByAgeOrderByLastNameDesc" , Integer .class );
@@ -457,7 +457,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeWithDescendingOrderingByStri
457
457
.orderBy ("users.last_name DESC" );
458
458
}
459
459
460
- @ Test // gh -282
460
+ @ Test // GH -282
461
461
void createsQueryToFindAllEntitiesByIntegerAttributeWithAscendingOrderingByStringAttribute () throws Exception {
462
462
463
463
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByAgeOrderByLastNameAsc" , Integer .class );
@@ -472,7 +472,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeWithAscendingOrderingByStrin
472
472
.orderBy ("users.last_name ASC" );
473
473
}
474
474
475
- @ Test // gh -282
475
+ @ Test // GH -282
476
476
void createsQueryToFindAllEntitiesByStringAttributeNot () throws Exception {
477
477
478
478
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByLastNameNot" , String .class );
@@ -486,7 +486,7 @@ void createsQueryToFindAllEntitiesByStringAttributeNot() throws Exception {
486
486
.where (TABLE + ".last_name != $1" );
487
487
}
488
488
489
- @ Test // gh -282
489
+ @ Test // GH -282
490
490
void createsQueryToFindAllEntitiesByIntegerAttributeIn () throws Exception {
491
491
492
492
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByAgeIn" , Collection .class );
@@ -501,7 +501,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeIn() throws Exception {
501
501
.where (TABLE + ".age IN ($1)" );
502
502
}
503
503
504
- @ Test // gh -282
504
+ @ Test // GH -282
505
505
void createsQueryToFindAllEntitiesByIntegerAttributeNotIn () throws Exception {
506
506
507
507
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByAgeNotIn" , Collection .class );
@@ -516,7 +516,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeNotIn() throws Exception {
516
516
.where (TABLE + ".age NOT IN ($1)" );
517
517
}
518
518
519
- @ Test // gh -282, gh -698
519
+ @ Test // GH -282, GH -698
520
520
void createsQueryToFindAllEntitiesByBooleanAttributeTrue () throws Exception {
521
521
522
522
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByActiveTrue" );
@@ -530,7 +530,7 @@ void createsQueryToFindAllEntitiesByBooleanAttributeTrue() throws Exception {
530
530
.where (TABLE + ".active = $1" );
531
531
}
532
532
533
- @ Test // gh -282, gh -698
533
+ @ Test // GH -282, GH -698
534
534
void createsQueryToFindAllEntitiesByBooleanAttributeFalse () throws Exception {
535
535
536
536
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByActiveFalse" );
@@ -544,7 +544,7 @@ void createsQueryToFindAllEntitiesByBooleanAttributeFalse() throws Exception {
544
544
.where (TABLE + ".active = $1" );
545
545
}
546
546
547
- @ Test // gh -282
547
+ @ Test // GH -282
548
548
void createsQueryToFindAllEntitiesByStringAttributeIgnoringCase () throws Exception {
549
549
550
550
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstNameIgnoreCase" , String .class );
@@ -558,7 +558,7 @@ void createsQueryToFindAllEntitiesByStringAttributeIgnoringCase() throws Excepti
558
558
.where ("UPPER(" + TABLE + ".first_name) = UPPER($1)" );
559
559
}
560
560
561
- @ Test // gh -282
561
+ @ Test // GH -282
562
562
void throwsExceptionWhenIgnoringCaseIsImpossible () throws Exception {
563
563
564
564
R2dbcQueryMethod queryMethod = getQueryMethod ("findByIdIgnoringCase" , Long .class );
@@ -568,7 +568,7 @@ void throwsExceptionWhenIgnoringCaseIsImpossible() throws Exception {
568
568
.isThrownBy (() -> createQuery (r2dbcQuery , getAccessor (queryMethod , new Object [] { 1L })));
569
569
}
570
570
571
- @ Test // gh -282
571
+ @ Test // GH -282
572
572
void throwsExceptionWhenInPredicateHasNonIterableParameter () throws Exception {
573
573
574
574
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByIdIn" , Long .class );
@@ -577,7 +577,7 @@ void throwsExceptionWhenInPredicateHasNonIterableParameter() throws Exception {
577
577
.isThrownBy (() -> new PartTreeR2dbcQuery (queryMethod , operations , r2dbcConverter , dataAccessStrategy ));
578
578
}
579
579
580
- @ Test // gh -282
580
+ @ Test // GH -282
581
581
void throwsExceptionWhenSimplePropertyPredicateHasIterableParameter () throws Exception {
582
582
583
583
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllById" , Collection .class );
@@ -586,7 +586,7 @@ void throwsExceptionWhenSimplePropertyPredicateHasIterableParameter() throws Exc
586
586
.isThrownBy (() -> new PartTreeR2dbcQuery (queryMethod , operations , r2dbcConverter , dataAccessStrategy ));
587
587
}
588
588
589
- @ Test // gh -282
589
+ @ Test // GH -282
590
590
void throwsExceptionWhenConditionKeywordIsUnsupported () throws Exception {
591
591
592
592
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByIdIsEmpty" );
@@ -596,7 +596,7 @@ void throwsExceptionWhenConditionKeywordIsUnsupported() throws Exception {
596
596
.isThrownBy (() -> createQuery (r2dbcQuery , getAccessor (queryMethod , new Object [0 ])));
597
597
}
598
598
599
- @ Test // gh -282
599
+ @ Test // GH -282
600
600
void throwsExceptionWhenInvalidNumberOfParameterIsGiven () throws Exception {
601
601
602
602
R2dbcQueryMethod queryMethod = getQueryMethod ("findAllByFirstName" , String .class );
@@ -606,7 +606,7 @@ void throwsExceptionWhenInvalidNumberOfParameterIsGiven() throws Exception {
606
606
.isThrownBy (() -> createQuery (r2dbcQuery , getAccessor (queryMethod , new Object [0 ])));
607
607
}
608
608
609
- @ Test // gh -282
609
+ @ Test // GH -282
610
610
void createsQueryWithLimitToFindEntitiesByStringAttribute () throws Exception {
611
611
612
612
R2dbcQueryMethod queryMethod = getQueryMethod ("findTop3ByFirstName" , String .class );
@@ -620,7 +620,7 @@ void createsQueryWithLimitToFindEntitiesByStringAttribute() throws Exception {
620
620
.where (TABLE + ".first_name = $1 LIMIT 3" );
621
621
}
622
622
623
- @ Test // gh -282
623
+ @ Test // GH -282
624
624
void createsQueryToFindFirstEntityByStringAttribute () throws Exception {
625
625
626
626
R2dbcQueryMethod queryMethod = getQueryMethod ("findFirstByFirstName" , String .class );
@@ -634,7 +634,7 @@ void createsQueryToFindFirstEntityByStringAttribute() throws Exception {
634
634
.where (TABLE + ".first_name = $1 LIMIT 1" );
635
635
}
636
636
637
- @ Test // gh -341
637
+ @ Test // GH -341
638
638
void createsQueryToDeleteByFirstName () throws Exception {
639
639
640
640
R2dbcQueryMethod queryMethod = getQueryMethod ("deleteByFirstName" , String .class );
@@ -648,7 +648,7 @@ void createsQueryToDeleteByFirstName() throws Exception {
648
648
.where (TABLE + ".first_name = $1" );
649
649
}
650
650
651
- @ Test // gh -344
651
+ @ Test // GH -344
652
652
void createsQueryToFindAllEntitiesByStringAttributeWithDistinct () throws Exception {
653
653
654
654
R2dbcQueryMethod queryMethod = getQueryMethod ("findDistinctByFirstName" , String .class );
@@ -661,7 +661,7 @@ void createsQueryToFindAllEntitiesByStringAttributeWithDistinct() throws Excepti
661
661
662
662
}
663
663
664
- @ Test // gh -475
664
+ @ Test // GH -475
665
665
void createsQueryToFindByOpenProjection () throws Exception {
666
666
667
667
R2dbcQueryMethod queryMethod = getQueryMethod ("findOpenProjectionBy" );
@@ -673,7 +673,7 @@ void createsQueryToFindByOpenProjection() throws Exception {
673
673
.from (TABLE );
674
674
}
675
675
676
- @ Test // gh -475
676
+ @ Test // GH -475
677
677
void createsDtoProjectionQuery () throws Exception {
678
678
679
679
R2dbcQueryMethod queryMethod = getQueryMethod ("findAsDtoProjectionBy" );
@@ -685,7 +685,7 @@ void createsDtoProjectionQuery() throws Exception {
685
685
.from (TABLE );
686
686
}
687
687
688
- @ Test // gh -363
688
+ @ Test // GH -363
689
689
void createsQueryForCountProjection () throws Exception {
690
690
691
691
R2dbcQueryMethod queryMethod = getQueryMethod ("countByFirstName" , String .class );
0 commit comments