Results 1 to 4 of 4

Thread: Example of CriteriaQuery usage within a Specification

  1. #1

    Smile Example of CriteriaQuery usage within a Specification

    The Specification interface includes:


    Predicate toPredicate(Root<T> root, CriteriaQuery<?> query, CriteriaBuilder cb);


    Can someone provide an example of using the provided CriteriaQuery (query) within the toPredicate() method?

    Thanks in advance :-)
    javapda on forum

  2. #2
    Join Date
    Nov 2010
    Location
    Guadalajara, Mexico
    Posts
    11

    Default

    http://blog.springsource.com/2011/04...-and-querydsl/. Hope is what your are looking for.

  3. #3

    Wink CriteriaQuery from toPredicate

    Quote Originally Posted by ikim1980 View Post
    http://blog.springsource.com/2011/04...-and-querydsl/. Hope is what your are looking for.
    Thank you for your response. Oliver's article is useful, however, I am looking for an example of a specific use of the CriteriaQuery from within the toPredicate method. If you discover one, I would love to see it in practice.

    Thanks again :-)
    javapda on forum

  4. #4
    Join Date
    Mar 2007
    Posts
    561

    Default

    Yes, I would like to know it too

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •