首页 > spring data jpa 方法sql复杂查询?

spring data jpa 方法sql复杂查询?

请问关于如下的复杂sql用方法名来查询的写法是什么呢,小弟刚接触spring data,学习中
select * from comments GROUP BY article_id order by count(article_id) DESC LIMIT 0,1


你可以用@Query

http://docs.spring.io/spring-data/jpa/docs/1.10.2.RELEASE/reference/html/#jpa.query-methods.at-query


http://docs.spring.io/spring-...

【热门文章】
【热门文章】