Open nitinsurana opened 9 years ago
public interface AnotherRepository extends PagingAndSortingRepository<DataBean, Long> { DataBean findFirstByOrderByAmountDesc(); //this doesn't work, throws NPE DataBean findByTimestamp(Long timestamp); }
What is exactly your issue ?
If it is related to the extension of a spring-data repository and spring-data syntax, I suggest you to dig into spring-data documentation and its forums.