You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use ObjectUtils instead of Enum.valueOf(…), move class presence check into field. Allow force-selection of JSQLParser.
Add more tests.
See #2989
Original pull request: #3623
Copy file name to clipboardExpand all lines: spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/query/QueryEnhancerFactoryUnitTests.java
It is possible to disable usage of `JSqlParser` for parsing natvie queries although it is available in classpath by setting `spring.data.jpa.query.native.parser=default` via the `spring.properties` file or a system property.
310
+
It is possible to disable usage of `JSqlParser` for parsing native queries although it is available on the classpath by setting `spring.data.jpa.query.native.parser=regex` via the `spring.properties` file or a system property.
311
+
312
+
Valid values are (case-insensitive):
313
+
314
+
* `auto` (default, automatic selection)
315
+
* `regex` (Use the builtin regex-based Query Enhancer)
316
+
* `jsqlparser` (Use JSqlParser)
311
317
====
312
318
313
319
A similar approach also works with named native queries, by adding the `.count` suffix to a copy of your query. You probably need to register a result set mapping for your count query, though.
0 commit comments