Acording to https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#projection.dynamic i need to implement generic method findAll, is there any way to do it without @Query annotation? I have tried this way:
<T> List<T> findAll(Class<T> type);
But I'm getting:
Caused by: org.springframework.data.mapping.PropertyReferenceException: No property findAll found for type