@@ -218,12 +218,7 @@ static MappedStatement prepareSelectOneAuthorMappedStatementWithConstructorResul
218
218
private static final long serialVersionUID = 1L ;
219
219
{
220
220
add (new ResultMapping .Builder (config , null , "id" , registry .getTypeHandler (Integer .class ))
221
- .javaType (int .class ).flags (new ArrayList <ResultFlag >() {
222
- private static final long serialVersionUID = 1L ;
223
- {
224
- add (ResultFlag .CONSTRUCTOR );
225
- }
226
- }).build ());
221
+ .javaType (int .class ).flags (ResultFlag .CONSTRUCTOR ).build ());
227
222
add (new ResultMapping .Builder (config , "username" , "username" , registry .getTypeHandler (String .class ))
228
223
.build ());
229
224
add (new ResultMapping .Builder (config , "password" , "password" , registry .getTypeHandler (String .class ))
@@ -388,13 +383,8 @@ static MappedStatement prepareComplexSelectBlogMappedStatement(final Configurati
388
383
new ArrayList <ResultMapping >() {
389
384
private static final long serialVersionUID = 1L ;
390
385
{
391
- add (new ResultMapping .Builder (config , "id" , "id" , registry .getTypeHandler (int .class ))
392
- .flags (new ArrayList <ResultFlag >() {
393
- private static final long serialVersionUID = 1L ;
394
- {
395
- add (ResultFlag .ID );
396
- }
397
- }).build ());
386
+ add (new ResultMapping .Builder (config , "id" , "id" , registry .getTypeHandler (int .class )).flags (ResultFlag .ID )
387
+ .build ());
398
388
add (new ResultMapping .Builder (config , "title" , "title" , registry .getTypeHandler (String .class )).build ());
399
389
add (new ResultMapping .Builder (config , "author.id" , "author_id" , registry .getTypeHandler (int .class ))
400
390
.build ());
@@ -436,13 +426,8 @@ static MappedStatement prepareSelectBlogByIdAndAuthor(final Configuration config
436
426
new ArrayList <ResultMapping >() {
437
427
private static final long serialVersionUID = 1L ;
438
428
{
439
- add (new ResultMapping .Builder (config , "id" , "id" , registry .getTypeHandler (int .class ))
440
- .flags (new ArrayList <ResultFlag >() {
441
- private static final long serialVersionUID = 1L ;
442
- {
443
- add (ResultFlag .ID );
444
- }
445
- }).build ());
429
+ add (new ResultMapping .Builder (config , "id" , "id" , registry .getTypeHandler (int .class )).flags (ResultFlag .ID )
430
+ .build ());
446
431
add (new ResultMapping .Builder (config , "title" , "title" , registry .getTypeHandler (String .class )).build ());
447
432
add (new ResultMapping .Builder (config , "author.id" , "author_id" , registry .getTypeHandler (int .class ))
448
433
.build ());
@@ -487,12 +472,7 @@ static MappedStatement prepareSelectPostsForBlogMappedStatement(final Configurat
487
472
private static final long serialVersionUID = 1L ;
488
473
{
489
474
add (new ResultMapping .Builder (config , "id" , "tag_id" , registry .getTypeHandler (int .class ))
490
- .flags (new ArrayList <ResultFlag >() {
491
- private static final long serialVersionUID = 1L ;
492
- {
493
- add (ResultFlag .ID );
494
- }
495
- }).build ());
475
+ .flags (ResultFlag .ID ).build ());
496
476
add (new ResultMapping .Builder (config , "name" , "tag_name" , registry .getTypeHandler (String .class )).build ());
497
477
}
498
478
}).build ();
@@ -501,12 +481,7 @@ static MappedStatement prepareSelectPostsForBlogMappedStatement(final Configurat
501
481
private static final long serialVersionUID = 1L ;
502
482
{
503
483
add (new ResultMapping .Builder (config , "id" , "comment_id" , registry .getTypeHandler (int .class ))
504
- .flags (new ArrayList <ResultFlag >() {
505
- private static final long serialVersionUID = 1L ;
506
- {
507
- add (ResultFlag .ID );
508
- }
509
- }).build ());
484
+ .flags (ResultFlag .ID ).build ());
510
485
add (new ResultMapping .Builder (config , "name" , "comment_name" , registry .getTypeHandler (String .class ))
511
486
.build ());
512
487
add (new ResultMapping .Builder (config , "comment" , "comment" , registry .getTypeHandler (String .class )).build ());
@@ -518,13 +493,8 @@ static MappedStatement prepareSelectPostsForBlogMappedStatement(final Configurat
518
493
new ArrayList <ResultMapping >() {
519
494
private static final long serialVersionUID = 1L ;
520
495
{
521
- add (new ResultMapping .Builder (config , "id" , "id" , registry .getTypeHandler (int .class ))
522
- .flags (new ArrayList <ResultFlag >() {
523
- private static final long serialVersionUID = 1L ;
524
- {
525
- add (ResultFlag .ID );
526
- }
527
- }).build ());
496
+ add (new ResultMapping .Builder (config , "id" , "id" , registry .getTypeHandler (int .class )).flags (ResultFlag .ID )
497
+ .build ());
528
498
add (new ResultMapping .Builder (config , "blog" , "blog_id" , registry .getTypeHandler (int .class ))
529
499
.javaType (Blog .class ).nestedQueryId ("selectBlogById" ).build ());
530
500
add (new ResultMapping .Builder (config , "createdOn" , "created_on" , registry .getTypeHandler (Date .class ))
@@ -565,12 +535,7 @@ static MappedStatement prepareSelectPostMappedStatement(final Configuration conf
565
535
private static final long serialVersionUID = 1L ;
566
536
{
567
537
add (new ResultMapping .Builder (config , "id" , "tag_id" , registry .getTypeHandler (int .class ))
568
- .flags (new ArrayList <ResultFlag >() {
569
- private static final long serialVersionUID = 1L ;
570
- {
571
- add (ResultFlag .ID );
572
- }
573
- }).build ());
538
+ .flags (ResultFlag .ID ).build ());
574
539
add (new ResultMapping .Builder (config , "name" , "tag_name" , registry .getTypeHandler (String .class )).build ());
575
540
}
576
541
}).build ();
@@ -579,12 +544,7 @@ static MappedStatement prepareSelectPostMappedStatement(final Configuration conf
579
544
private static final long serialVersionUID = 1L ;
580
545
{
581
546
add (new ResultMapping .Builder (config , "id" , "comment_id" , registry .getTypeHandler (int .class ))
582
- .flags (new ArrayList <ResultFlag >() {
583
- private static final long serialVersionUID = 1L ;
584
- {
585
- add (ResultFlag .ID );
586
- }
587
- }).build ());
547
+ .flags (ResultFlag .ID ).build ());
588
548
add (new ResultMapping .Builder (config , "name" , "comment_name" , registry .getTypeHandler (String .class ))
589
549
.build ());
590
550
add (new ResultMapping .Builder (config , "comment" , "comment" , registry .getTypeHandler (String .class )).build ());
@@ -595,13 +555,8 @@ static MappedStatement prepareSelectPostMappedStatement(final Configuration conf
595
555
final ResultMap postResultMap = new ResultMap .Builder (config , "" , Post .class , new ArrayList <ResultMapping >() {
596
556
private static final long serialVersionUID = 1L ;
597
557
{
598
- add (new ResultMapping .Builder (config , "id" , "id" , registry .getTypeHandler (int .class ))
599
- .flags (new ArrayList <ResultFlag >() {
600
- private static final long serialVersionUID = 1L ;
601
- {
602
- add (ResultFlag .ID );
603
- }
604
- }).build ());
558
+ add (new ResultMapping .Builder (config , "id" , "id" , registry .getTypeHandler (int .class )).flags (ResultFlag .ID )
559
+ .build ());
605
560
add (new ResultMapping .Builder (config , "blog" , "blog_id" , registry .getTypeHandler (int .class ))
606
561
.javaType (Blog .class ).nestedQueryId ("selectBlogById" ).build ());
607
562
add (new ResultMapping .Builder (config , "createdOn" , "created_on" , registry .getTypeHandler (Date .class )).build ());
@@ -641,12 +596,7 @@ static MappedStatement prepareSelectPostWithBlogByAuthorMappedStatement(final Co
641
596
private static final long serialVersionUID = 1L ;
642
597
{
643
598
add (new ResultMapping .Builder (config , "id" , "tag_id" , registry .getTypeHandler (int .class ))
644
- .flags (new ArrayList <ResultFlag >() {
645
- private static final long serialVersionUID = 1L ;
646
- {
647
- add (ResultFlag .ID );
648
- }
649
- }).build ());
599
+ .flags (ResultFlag .ID ).build ());
650
600
add (new ResultMapping .Builder (config , "name" , "tag_name" , registry .getTypeHandler (String .class )).build ());
651
601
}
652
602
}).build ();
@@ -655,12 +605,7 @@ static MappedStatement prepareSelectPostWithBlogByAuthorMappedStatement(final Co
655
605
private static final long serialVersionUID = 1L ;
656
606
{
657
607
add (new ResultMapping .Builder (config , "id" , "comment_id" , registry .getTypeHandler (int .class ))
658
- .flags (new ArrayList <ResultFlag >() {
659
- private static final long serialVersionUID = 1L ;
660
- {
661
- add (ResultFlag .ID );
662
- }
663
- }).build ());
608
+ .flags (ResultFlag .ID ).build ());
664
609
add (new ResultMapping .Builder (config , "name" , "comment_name" , registry .getTypeHandler (String .class ))
665
610
.build ());
666
611
add (new ResultMapping .Builder (config , "comment" , "comment" , registry .getTypeHandler (String .class )).build ());
@@ -672,13 +617,8 @@ static MappedStatement prepareSelectPostWithBlogByAuthorMappedStatement(final Co
672
617
new ArrayList <ResultMapping >() {
673
618
private static final long serialVersionUID = 1L ;
674
619
{
675
- add (new ResultMapping .Builder (config , "id" , "id" , registry .getTypeHandler (int .class ))
676
- .flags (new ArrayList <ResultFlag >() {
677
- private static final long serialVersionUID = 1L ;
678
- {
679
- add (ResultFlag .ID );
680
- }
681
- }).build ());
620
+ add (new ResultMapping .Builder (config , "id" , "id" , registry .getTypeHandler (int .class )).flags (ResultFlag .ID )
621
+ .build ());
682
622
683
623
add (new ResultMapping .Builder (config , "blog" ).nestedQueryId ("selectBlogByIdAndAuthor" )
684
624
.composites (new ArrayList <ResultMapping >() {
0 commit comments