Limit for Repository Query Methods (#15055)

* Limit for Repository Query Methods

* Limit for Repository Query Methods
This commit is contained in:
Michael Olayemi 2023-10-27 05:44:00 +01:00 committed by GitHub
parent b4db616646
commit d9c72a1c1a
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ interface PassengerRepository extends JpaRepository<Passenger, Long>, CustomPass
Passenger findTopByOrderBySeatNumberAsc();
List<Passenger> findByOrderBySeatNumberAsc();
//The Limit type is a new feature in Spring Data JPA version 3.2
//List<Passenger> findByOrderBySeatNumberAsc(Limit limit);
List<Passenger> findByFirstNameIgnoreCase(String firstName);