-
Notifications
You must be signed in to change notification settings - Fork 367
Commit 88285f7
committed
Fix DELETE query in derived delete operations
- Use correct ID column for child entities in JdbcDeleteQueryCreator
- Remove getIdDefiningParentPath() to reference current entity ID
- Rename parentIdColumns to idColumns for clarity
- Add test case for custom ID column name (@column("CHILD_ID"))
Fixes errors when deleting child entities with non-standard ID column names.
Fixes #2123 1 parent ca45cd5 commit 88285f7
File tree
3 files changed
+5
-4
lines changed- spring-data-jdbc/src
- main/java/org/springframework/data/jdbc/repository/query
- test
- java/org/springframework/data/jdbc/repository
- resources/org.springframework.data.jdbc.repository
3 files changed
+5
-4
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
153 | - | ||
153 | + | ||
154 | 154 |
| |
155 | 155 |
| |
156 | 156 |
| |
157 | - | ||
157 | + | ||
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | + | ||
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
| |||
109 | 110 |
| |
110 | 111 |
| |
111 | 112 |
| |
112 | - | ||
113 | + | ||
113 | 114 |
| |
114 | 115 |
| |
115 | 116 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | - | ||
8 | + | ||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
|
0 commit comments