How to use OrderBy with GreaterThan Spring JPA

I want to add a method to my repository interface that finds all the data that exceeds the value long publishdataand the order of its cancellation:

I tried this, but it does not seem to work:

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

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

}
+4
source share
1 answer
List<Noticia> findByPublishdateGreaterThanOrderByPublishdateDesc(Long publishdate)
+10
source

All Articles