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);
}
source
share