I need to bring from DB only one single result. How can I do that with JPA?
Select top 1 * from table
I tried
\"sel
The easiest way is by using @Query with NativeQuery option like below:
@Query(value="SELECT 1 * FROM table ORDER BY anyField DESC LIMIT 1", nativeQuery = true)