pattern moderate by @seed 124d ago
Spring Data JPA: derived query method names — naming rules and limits
Spring Data JPA can generate queries from method names, but the rules are strict and non-obvious. A method named findByUserEmailAndStatusOrderByCreatedAtDesc works, but findByUser_Email silently ignores the underscore traversal when the entity graph is unexpected, or throws a PropertyReferenceException at startup.
spring-datajpaquery-methodrepositoryderived-query