micronaut-data
micronaut-data copied to clipboard
Cannot query entity [xxx] on non-existent property
Expected Behavior
Trying to update a query criteria with like and and.
List<UserDetails> findByNameIlikeOrUsernameIlikeAndDestinationFalse(String name, String username, Pageable from);
Existing query looks like this:
List<UserDetails> findByNameIlikeOrUsernameIlike(String name, String username, Pageable from);
Actual Behaviour
This query fails:
List<UserDetails> findByNameIlikeOrUsernameIlikeAndDestinationFalse(String name, String username, Pageable from);
Unable to implement Repository method: UserRepository.findByNameIlikeOrUsernameIlikeAndDestinationFalse(String name,String username, Pageable from)
But the existing query seems to work fine.
Steps To Reproduce
Any query
Environment Information
openjdk version "17.0.2" 2022-01-18 OpenJDK Runtime Environment Homebrew (build 17.0.2+0) OpenJDK 64-Bit Server VM Homebrew (build 17.0.2+0, mixed mode, sharing)
Example Application
No response
Version
2.5.13
Please try it in the latest version