JPA query creation order by

后端 未结 4 1581
孤城傲影
孤城傲影 2021-02-18 22:07

I\'m trying to learn Spring on my own, and I\'m planning to do that by creating a blog web app. I already have the basic blog functionality working, which is a page to display b

4条回答
  •  春和景丽
    2021-02-18 22:27

    May be my answer is stupid but did you try just "from Post order by id desc" instead of "select p from Post p order by p.id desc"

提交回复
热议问题