I try to make an application with Spring-Data-JPA on a table in order by ASC but it gives me an error:
Invalid derived query! No property asc found for type java
Example :
databaseDAO.findByUserNameOrderByCreatedDateDesc(username);
to list out users based on username and sortby created date.
@Repository public interface DatabaseDAO extends JpaRepository { public List findByUserNameOrderByCreatedDateDesc(String username); }