Commit 155004e
committed
JdbcAggregateTemplate honors columns specified in query.
If no columns are given, all columns are selected by default.
If columns are specified, only these are selected.
Joins normally triggered by columns from 1:1 relationships are not implemented, and the corresponding columns don't get loaded and can't be specified in a query.
Limiting columns is not supported for single query loading.
Closes #18031 parent 7050464 commit 155004e
File tree
3 files changed
+71
-15
lines changed- spring-data-jdbc/src
- main/java/org/springframework/data/jdbc/core/convert
- test/java/org/springframework/data/jdbc/core
- convert
3 files changed
+71
-15
lines changedLines changed: 31 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
511 | 516 | | |
512 | 517 | | |
513 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
514 | 523 | | |
515 | 524 | | |
516 | 525 | | |
517 | 526 | | |
518 | 527 | | |
519 | 528 | | |
520 | | - | |
521 | | - | |
522 | 529 | | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
529 | 533 | | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
530 | 545 | | |
531 | | - | |
532 | | - | |
533 | | - | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
534 | 550 | | |
535 | 551 | | |
536 | 552 | | |
| 553 | + | |
537 | 554 | | |
538 | 555 | | |
539 | 556 | | |
| |||
876 | 893 | | |
877 | 894 | | |
878 | 895 | | |
879 | | - | |
| 896 | + | |
880 | 897 | | |
881 | 898 | | |
882 | 899 | | |
883 | 900 | | |
884 | 901 | | |
885 | 902 | | |
886 | 903 | | |
| 904 | + | |
887 | 905 | | |
888 | 906 | | |
889 | 907 | | |
| |||
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
238 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
239 | 258 | | |
240 | 259 | | |
241 | 260 | | |
| |||
2240 | 2259 | | |
2241 | 2260 | | |
2242 | 2261 | | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
2243 | 2267 | | |
2244 | 2268 | | |
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
361 | 374 | | |
362 | 375 | | |
363 | 376 | | |
| |||
375 | 388 | | |
376 | 389 | | |
377 | 390 | | |
378 | | - | |
| 391 | + | |
| 392 | + | |
379 | 393 | | |
380 | 394 | | |
381 | 395 | | |
| |||
0 commit comments