0

I want to show three rows in a table in PostgreSQL with Hibernate. If I want by id, I just use findById? How can I select with ascending without query in my repository?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
siapbang
  • 31
  • 1
  • 4
  • Does this help? https://www.baeldung.com/hibernate-sort – Rafaqat Ali Feb 04 '21 at 05:37
  • 1
    Does this answer your question? [How to use OrderBy with findAll in Spring Data](https://stackoverflow.com/questions/25486583/how-to-use-orderby-with-findall-in-spring-data) – Abdul Moeez Feb 05 '21 at 15:19

0 Answers0