title: CriteriaQuery entity.list has value
body: <p>I have an entity that has a list of enitities connected to it. <code>Customer.roles = List&lt;Role&gt;()</code></p>
  
  <p>Now I get <code>roleId</code> as input and I'd like to know if customer has the role connected to it.</p>
  
  <p>I've tried several Ways using <code>CriteriaQuery</code> but haven't yet found the right way. How to do this using <code>CriteriaQuery</code>.</p>
  
  <p>Idealy I'd like something like:
  <code>fromCustomer.get("roles").has(roleId)</code></p>