Oct 25th, 2012, 12:54 PM
Spring Data JPA + querydsl: Create Predicate that includes join
What I want is to be able to call findAll method with a predicate that filters by referenced entities.
basically exactly what was asked here over a year ago:
Is that possible at all?
I need these because I have a Boolean Expression which I can't express with standard JPA findBy... method. The actual filter (true or false) is a postgresql function call and not a simple like or eq or gt.
Oct 31st, 2012, 02:48 PM
Yes, it's possible. Put an any() at the end of a collection path to get a single entry.