Limit for Repository Query Methods (#15055)
* Limit for Repository Query Methods * Limit for Repository Query Methods
This commit is contained in:
parent
b4db616646
commit
d9c72a1c1a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue