Repository navigation
Conversation
Hibernate's HQL parser accepts `LIKE REGEXP` and `ILIKE REGEXP` predicates. Align Spring Data JPA's HQL grammar with that syntax and cover the round-trip rendering path. Signed-off-by: jewoodev <jewoos15@naver.com>
jewoodev
force-pushed
the
hql-like-regexp-parser
branch
from
July 6, 2026 08:26
f7c1895 to
8d2a260
Compare
REGEXP modifier in HQL LIKE predicates.
Contributor
|
Hi @jewoodev Operators Per my understanding, eclipse link supports |
Contributor
Author
|
EQL parser already supports the standalone form This PR is scoped to Hibernate HQL, did you have a specific interaction with the EQL path in mind that you think this PR should address? |
Contributor
|
No, I just saw your changes and thought about a potential problem. |
mp911de
pushed a commit
that referenced
this pull request
Jul 29, 2026
Hibernate's HQL parser accepts `LIKE REGEXP` and `ILIKE REGEXP` predicates. Align Spring Data JPA's HQL grammar with that syntax and cover the round-trip rendering path. Signed-off-by: jewoodev <jewoos15@naver.com> Closes #4295
mp911de
added a commit
that referenced
this pull request
Jul 29, 2026
Add ticket test reference. See #4295
mp911de
pushed a commit
that referenced
this pull request
Jul 29, 2026
Hibernate's HQL parser accepts `LIKE REGEXP` and `ILIKE REGEXP` predicates. Align Spring Data JPA's HQL grammar with that syntax and cover the round-trip rendering path. Signed-off-by: jewoodev <jewoos15@naver.com> Closes #4295
mp911de
added a commit
that referenced
this pull request
Jul 29, 2026
Add ticket test reference. See #4295
mp911de
added a commit
that referenced
this pull request
Jul 29, 2026
Add ticket test reference. See #4295
Member
|
Thank you for your contribution. That's merged, polished, and backported now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hibernate's HQL parser accepts
LIKE REGEXPandILIKE REGEXPpredicates, but Spring Data JPA's HQL grammar currently treatsregexpas the pattern expression and rejects the actual pattern literal.This change adds
REGEXPas an HQL token and allows it as a modifier afterLIKEorILIKE, keeping standaloneREGEXPpredicates out of scope. HQL renderer round-trip coverage now verifiesLIKE REGEXP,NOT LIKE REGEXP, andILIKE REGEXP.Verified with
./mvnw -pl spring-data-jpa generate-sourcesand./mvnw -pl spring-data-jpa -Dtest=HqlQueryRendererTests test.