Specification/Predicate to Search Nested Objects
问题 I'm using Spring Boot with Spring JPA and Specification Executor. I have my Specification/Predicate combo successfully searching the simple attributes within my class. However, I am having difficulties searching the objects within. Do they need a separate Specification? I have a class that has 2 Many To One mapping classes within and would like to search those fields from within the same class. Predicate Implementation public Specification<User> getSpecification(SpecificationField field,