如何将OrderBy与GreaterThan Spring JPA一起使用

我想在我的Repository接口中添加一个方法,该方法可以找到大于long publishdata值的所有数据并将其Decreacingly命令:

我尝试过这个,但它似乎没有起作用:

@Repository
public interface NoticiaRepository extends CrudRepository<Noticia,Long>{

    Noticia findById(long id);
    List<Noticia> findByOrderPublishdateGreaterThanDesc(long publishdate);

}

解决方法

List<Noticia> findByPublishdateGreaterThanorderByPublishdateDesc(Long publishdate)

相关文章

SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_n...
if not exists(select name from syscolumns where name=&am...
select a.*,pano=a.pa_no,b.pa_name,f.dp_name,e.fw_state_n...
要在 SQL Server 2019 中设置定时自动重启,可以使用 Window...
您收到的错误消息表明数据库 &#39;EastRiver&#39; 的...
首先我需要查询出需要使用SQL Server Profiler跟踪的数据库标...