-
Oct 25th, 2012, 12:54 PM
#1
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:
http://forum.springsource.org/showth...OneToMany-join
Is that possible at all?
Note:
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
#2
Yes, it's possible. Put an any() at the end of a collection path to get a single entry.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules