-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow configuration of transformation for case-insensitive queries #2420
Comments
I ran into the same problem in the query by example code. It also appears to be hard-coded to use a lower conversion. As stated above, this is challenging because I only want to maintain a single case-insensitive index on either the upper or lowercase version of certain columns. It would be great if this were able to be customized in the ExampleMatcher methods. |
Whereas another knob would work, I wonder if it isn't simpler to just update things to use |
To avoid developers having to maintain multiples indices, use 'lower' for all ignoreCase operations (JSqlParser, QueryByExample, Querydsl). Resolves #2420.
Going consistently with |
To avoid developers having to maintain multiples indices, use 'lower' for all ignoreCase operations (JSqlParser, QueryByExample, Querydsl). Resolves #2420.
To avoid having to maintain multiples indices, use 'lower' for all ignoreCase operations (JSqlParser, QueryByExample, Querydsl). See #2420.
To avoid having to maintain multiples indices, use 'lower' for all ignoreCase operations (JSqlParser, QueryByExample, Querydsl). See #2420.
This has been merged to |
Release notes https://github.com/spring-projects/spring-data-commons/wiki/Release-Train-2021.2-(Raj)-Release-Notes-(Preview) have been updated. |
Did this get reverted, or did I miss something? According to the logged HQL, 3.2.2 is using Edit: |
I am with @OrangeDog - I just wrapped up dropping an UPPER index thinking this had been resolved in 2.7.x, only to discover that a I am on |
@danwatt QueryDSL is using |
Sure. We've started exploring configuration for ignore-case transformations with https://github.com/spring-projects/spring-data-jpa/pull/3653/files#diff-fdc19ed3d18aab513d05cd0418ab02dbaa8f1bdf5f8f8574d26d1ecdd9914486 |
This change concerns:
for Sorting and predicates |
Is there any plan to actually fix this issue as originally intended (i.e. make everything use |
We use Spring Data JPA + Querydsl JPA. If we perform queries with
ignoreCase
keyword in repository methods Spring data JPA useUPPER
function on parameters in SQL(as described in documentation, Table 3. Supported keywords inside method names), but Querydsl JPA usesLOWER
function. We should use two types of indexes or don't useignoreCase
keyword in repository methods.It would be great, if it was possible to configured to use
UPPER
function orLOWER
function in Spring Data JPA.See also #3540
The text was updated successfully, but these errors were encountered: