title: Play Framework - find Object with "Or" in the query
body: <p>It is <a href="http://www.playframework.org/documentation/1.2.1/jpa#finding" rel="nofollow">possible</a> to use "AND" while querying for Objects in Entity like  </p>
  
  <pre><code>Post.find("byTitleLikeAndAuthor", "%hello%", connectedUser).fetch();
  </code></pre>
  
  <p>but is it possible to user "OR" while querying, like  </p>
  
  <pre><code>Post.find("byNameOrEmail", name, email).fetch(); 
  </code></pre>
  
  <p>Thank you</p>
  
  <p><strong>Fixed!!</strong></p>
  
  <p>Use <code>Post.find(" name = ? or email ?", name, email).fetch();</code></p>
  
  <p>While using "where" in the query, it fails saying "unexpected token"</p>