micronaut-data icon indicating copy to clipboard operation
micronaut-data copied to clipboard

Cannot query entity [xxx] on non-existent property

Open ahetawal-p opened this issue 3 years ago • 1 comments

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

ahetawal-p avatar May 02 '22 21:05 ahetawal-p

Please try it in the latest version

dstepanov avatar May 10 '22 13:05 dstepanov