Commit e09b778
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 c7b1ac1 commit e09b778
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 | | |
| |||
2283 | 2302 | | |
2284 | 2303 | | |
2285 | 2304 | | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
2286 | 2310 | | |
2287 | 2311 | | |
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
367 | 380 | | |
368 | 381 | | |
369 | 382 | | |
| |||
381 | 394 | | |
382 | 395 | | |
383 | 396 | | |
384 | | - | |
| 397 | + | |
| 398 | + | |
385 | 399 | | |
386 | 400 | | |
387 | 401 | | |
| |||
0 commit comments