Commit 8a95dba
committed
Remove exception guard for absent query handling.
We now no longer fall back to an absent query when a NamedQuery construction fails with IllegalArgumentException. IllegalArgumentException is also used by the JPA API to indicate an absent query. In other cases, where we fail with IllegalArgumentException, we fell back to query derivation as handling IAE as signal for an absent query.
We already have better query absence checks in place so we can remove the try/catch blocks in favor of the named query presence check.
Closes #35501 parent c7e3242 commit 8a95dba
File tree
1 file changed
+5
-10
lines changed- spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query
1 file changed
+5
-10
lines changedLines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
156 | 150 | | |
| 151 | + | |
157 | 152 | | |
158 | 153 | | |
159 | 154 | | |
| |||
0 commit comments