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
Problem solved
<T> Set<T> findBy(Class<T> type);
Did work ... :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With