title: how to write predicate for QueryDslPredicateExecutor
body: <p>When i try to use Querydsl as shown in Spring reference <a href="http://docs.spring.io/spring-data/jpa/docs/1.10.4.RELEASE/reference/html/" rel="nofollow noreferrer">Spring 1.10.4.RELEASE reference</a> - i get some errors from IDE:
  Cannot resolve method findAll(predicate). I changed import to com.mysema.query.types.Predicate. Now method looks fine.
  But i cant resolve problem with:</p>
  
  <pre><code>Predicate predicate = user.getUsername().equalsIgnoreCase(username).and((user.getId().equals(userid)).not);
  </code></pre>
  
  <p>I got errors: cannot resolve method: and, cannot resolve method not.</p>
  
  <p>Some from reference:
  Example 32. Querydsl integration on repositories</p>
  
  <pre><code>interface UserRepository extends CrudRepository&lt;User, Long&gt;, QueryDslPredicateExecutor&lt;User&gt; {
  
  }
  </code></pre>
  
  <p>The above enables to write typesafe queries using Querydsl Predicate s.</p>
  
  <pre><code>Predicate predicate = user.firstname.equalsIgnoreCase("dave")
  .and(user.lastname.startsWithIgnoreCase("mathews"));
  
  userRepository.findAll(predicate);
  </code></pre>
  
  <p>But example is incorrect.
  Anybody know how to use this?</p>