Results 1 to 2 of 2

Thread: Spring Data JPA + querydsl: Create Predicate that includes join

  1. #1
    Join Date
    Oct 2012
    Posts
    8

    Default 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. #2
    Join Date
    Aug 2011
    Posts
    8

    Default

    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
  •