Inspectopedia Help

Spring Data repository method errors

Reports Spring Data CRUD repository methods for which the Spring Data Query builder cannot generate the corresponding query.


interface PersonRepository extends Repository<Person, Long> { List<Person> findByEmailAddressAndLastname(EmailAddress emailAddress, String lastname); List<Person> findByEmailUnknownAndLastname(EmailAddress emailAddress, String lastname); // Cannot resolve property 'Unknown' List<Person> findByAndLastname(EmailAddress emailAddress, String lastname); // Missing property name List<Person> findDistinctPeopleByLastnameOrFirstname(String lastname, String firstname); List<Person> findPeopleDistinctByUnknownOrFirstname(String lastname, String firstname); // Cannot resolve property 'Unknown' List<Person> findByLastnameOrderByFirstnameAsc(String lastname); List<Person> findByLastnameOrderByUnknownDesc(String lastname); // Cannot resolve property 'Unknown' }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Spring Data, 233.SNAPSHOT

Last modified: 13 July 2023