Announcement Announcement Module
Collapse
No announcement yet.
Spring Data JPA + querydsl: Create Predicate that includes join Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    Yes, it's possible. Put an any() at the end of a collection path to get a single entry.

    Comment

    Working...
    X