Inspectopedia 2024.3 Help

Jakarta Data repository method errors

Reports Jakarta Dat repository methods for which the builder cannot generate the corresponding query.

Example:

interface PersonRepository extends Repository<Person, Long> { List<Person> findByEmailAndLastname(String email, String lastname); List<Person> findByUnknownAndLastname(EmailAddress emailAddress, String lastname); // Cannot resolve property 'Unknown' List<Person> findByAndLastname(String email, String lastname); // Missing property name List<Person> findByLastnameOrderByFirstnameAsc(String lastname); List<Person> findByLastnameOrderByUnknownDesc(String lastname); // Cannot resolve property 'Unknown' }

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

JakartaDataRepositoryMethodInconsistency
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Jakarta Data | Jakarta Data

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.3, Qodana for JVM 2024.3,

Can be installed with plugin:

Jakarta EE: Data, 243.23126

Last modified: 03 December 2024