Derived Query Methods in Spring Data JPA Repositories code example
Example 1: findbyname in jpa
List<User> findTop3ByAge()
Example 2: findbyname in jpa
List<User> findByBirthDateAfter(ZonedDateTime birthDate);List<User> findByBirthDateBefore(ZonedDateTime birthDate);
Example 3: findbyname in jpa
List<User> findByNameOrBirthDate(String name, ZonedDateTime birthDate);List<User> findByNameOrBirthDateAndActive(String name, ZonedDateTime birthDate, Boolean active);