Select top 1 spring jpa. May 4, 2017 · 2021 att: you can use TOP or FIRST in Spring Data JPA. name = 'mydoc. emailAddress = ?1 and u. VERSION DESC. 4/reference/html/#repositories. Jun 30, 2016 · My favourite Spring Data JPA feature is top and first, which returns the first or top records from a table. ORDER BY dt. lastname = ?2. See full list on baeldung. io/spring-data/jpa/docs/2.