0

I have this method that aims to return objects using regex and pagination

Page<JokeModel> searchAllByPhraseRegex(String phrase, Pageable pageable);

However, this would throw an exception Unsupported keyword REGEX (1): [MatchesRegex, Matches, Regex]

Spring Data JPA docs explicitly stated that Regex is supported:

https://docs.spring.io/spring-data/jpa/docs/1.3.0.RELEASE/reference/html/repository-query-keywords.html

Moreover, Intellij does give suggestions for completing the method: screenshot

0 Answers0