【发布时间】:2014-10-18 15:26:21
【问题描述】:
我正在使用 spring 数据,我的 DAO 看起来像
public interface StudentDAO extends JpaRepository<StudentEntity, Integer> {
public findAllOrderByIdAsc(); // I want to use some thing like this
}
在上面的代码中,注释行显示了我的意图。 spring Data 能否提供内置功能 使用这种方法通过 ASC/DESC 的某个列查找所有记录的顺序?
【问题讨论】:
标签: spring spring-data spring-data-jpa