-
Notifications
You must be signed in to change notification settings - Fork 619
Commit ade01cb
committed
feat: Use label expressions for dynamic labels when available.
This uses the new features of Cypher-DSL to express lists of labels during
- match
- creation
- modification (setting / removing) labels
of entities with dynamic labels. On older Neo4j lists of labels will still be expressed as static lists, on Neo4j 5.26 and later, they will use expressions.
This change has been tested on
- latest 4.4
- latest 5.26
- latest 2025.x
It turned out that in the case of 4.4 there are still edge cases in which elementId is called and tests will fail. Those will be addressed in as separate commit.
Also, several tests for vector properties and indexes have now been disabled on early databases, so that the build succeeds.
Using the correct Cypher DSL dialect is paramount for this feature to work proper, some integration tests had not been configured properly.
This closes #3043.
Signed-off-by: Michael Simons <michael@simons.ac>1 parent 52bb9ed commit ade01cb
File tree
25 files changed
+261
-52
lines changed- ci
- src
- main/java/org/springframework/data/neo4j/core
- mapping
- test
- java/org/springframework/data/neo4j
- core/mapping
- integration
- cascading
- conversion_imperative
- imperative
- issues
- reactive
- test
- kotlin/org/springframework/data/neo4j/integration
- imperative
- k
25 files changed
+261
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | - | ||
25 | + | ||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | - | ||
80 | + | ||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | - | ||
102 | + | ||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | - | ||
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | - | ||
60 | + | ||
62 | 61 | | |
63 | 62 | | |
64 | - | ||
63 | + | ||
64 | + | ||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
Lines changed: 24 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | - | ||
472 | - | ||
473 | - | ||
471 | + | ||
472 | + | ||
473 | + | ||
474 | 474 | | |
475 | 475 | | |
476 | + | ||
476 | 477 | | |
477 | 478 | | |
478 | 479 | | |
| |||
516 | 517 | | |
517 | 518 | | |
518 | 519 | | |
520 | + | ||
521 | + | ||
519 | 522 | | |
520 | - | ||
521 | - | ||
523 | + | ||
522 | 524 | | |
523 | 525 | | |
524 | 526 | | |
525 | 527 | | |
526 | - | ||
528 | + | ||
529 | + | ||
527 | 530 | | |
528 | 531 | | |
529 | 532 | | |
| |||
620 | 623 | | |
621 | 624 | | |
622 | 625 | | |
623 | - | ||
624 | - | ||
626 | + | ||
627 | + | ||
625 | 628 | | |
626 | 629 | | |
630 | + | ||
627 | 631 | | |
628 | 632 | | |
629 | 633 | | |
| |||
726 | 730 | | |
727 | 731 | | |
728 | 732 | | |
733 | + | ||
729 | 734 | | |
730 | 735 | | |
731 | 736 | | |
| |||
786 | 791 | | |
787 | 792 | | |
788 | 793 | | |
794 | + | ||
789 | 795 | | |
790 | 796 | | |
791 | 797 | | |
| |||
944 | 950 | | |
945 | 951 | | |
946 | 952 | | |
953 | + | ||
947 | 954 | | |
948 | 955 | | |
949 | 956 | | |
| |||
1132 | 1139 | | |
1133 | 1140 | | |
1134 | 1141 | | |
1142 | + | ||
1135 | 1143 | | |
1136 | 1144 | | |
1137 | 1145 | | |
| |||
1145 | 1153 | | |
1146 | 1154 | | |
1147 | 1155 | | |
1156 | + | ||
1148 | 1157 | | |
1149 | 1158 | | |
1150 | 1159 | | |
| |||
1155 | 1164 | | |
1156 | 1165 | | |
1157 | 1166 | | |
1167 | + | ||
1158 | 1168 | | |
1159 | 1169 | | |
1160 | 1170 | | |
| |||
1187 | 1197 | | |
1188 | 1198 | | |
1189 | 1199 | | |
1200 | + | ||
1190 | 1201 | | |
1191 | 1202 | | |
1192 | 1203 | | |
| |||
1255 | 1266 | | |
1256 | 1267 | | |
1257 | 1268 | | |
1258 | - | ||
1259 | - | ||
1260 | - | ||
1269 | + | ||
1270 | + | ||
1271 | + | ||
1261 | 1272 | | |
1262 | 1273 | | |
1274 | + | ||
1263 | 1275 | | |
1264 | 1276 | | |
1265 | 1277 | | |
| |||
1605 | 1617 | | |
1606 | 1618 | | |
1607 | 1619 | | |
1620 | + | ||
1608 | 1621 | | |
1609 | 1622 | | |
1610 | 1623 | | |
| |||
Lines changed: 20 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | - | ||
512 | - | ||
513 | - | ||
511 | + | ||
512 | + | ||
514 | 513 | | |
515 | 514 | | |
515 | + | ||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | + | ||
549 | + | ||
548 | 550 | | |
549 | - | ||
550 | - | ||
551 | + | ||
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
554 | 555 | | |
555 | - | ||
556 | + | ||
557 | + | ||
556 | 558 | | |
557 | 559 | | |
558 | 560 | | |
| |||
683 | 685 | | |
684 | 686 | | |
685 | 687 | | |
686 | - | ||
687 | - | ||
688 | - | ||
688 | + | ||
689 | + | ||
689 | 690 | | |
690 | 691 | | |
692 | + | ||
691 | 693 | | |
692 | 694 | | |
693 | 695 | | |
694 | 696 | | |
695 | 697 | | |
696 | 698 | | |
697 | 699 | | |
698 | - | ||
699 | 700 | | |
700 | 701 | | |
701 | 702 | | |
| |||
722 | 723 | | |
723 | 724 | | |
724 | 725 | | |
726 | + | ||
725 | 727 | | |
726 | 728 | | |
727 | 729 | | |
| |||
739 | 741 | | |
740 | 742 | | |
741 | 743 | | |
744 | + | ||
742 | 745 | | |
743 | 746 | | |
744 | 747 | | |
| |||
1089 | 1092 | | |
1090 | 1093 | | |
1091 | 1094 | | |
1095 | + | ||
1092 | 1096 | | |
1093 | 1097 | | |
1094 | 1098 | | |
| |||
1227 | 1231 | | |
1228 | 1232 | | |
1229 | 1233 | | |
1234 | + | ||
1230 | 1235 | | |
1231 | 1236 | | |
1232 | 1237 | | |
| |||
1298 | 1303 | | |
1299 | 1304 | | |
1300 | 1305 | | |
1306 | + | ||
1301 | 1307 | | |
1302 | 1308 | | |
1303 | 1309 | | |
| |||
1358 | 1364 | | |
1359 | 1365 | | |
1360 | 1366 | | |
1361 | - | ||
1362 | - | ||
1363 | - | ||
1367 | + | ||
1368 | + | ||
1369 | + | ||
1364 | 1370 | | |
1365 | 1371 | | |
1372 | + | ||
1366 | 1373 | | |
1367 | 1374 | | |
1368 | 1375 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | - | ||
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
166 | 165 | | |
167 | 166 | | |
168 | 167 | | |
168 | + | ||
169 | + | ||
170 | + | ||
171 | + | ||
172 | + | ||
173 | + | ||
174 | + | ||
175 | + | ||
169 | 176 | | |
170 | 177 | | |
171 | 178 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | + | ||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
32 | + | ||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | + | ||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
28 | + | ||
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
32 | + | ||
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | + | ||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
72 | + | ||
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
83 | + | ||
84 | + | ||
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
89 | + | ||
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
| |||
0 commit comments