title: Understanding HHH90000016 error in Hibernate
body: <p>I would like to better understand, and possibly fix, the following warning:</p>
  
  <pre><code>2016-07-04 17:04:33,151 WARN  [ajp-nio-8009-exec-3] org.hibernate.orm.deprecation - toColumns  - HHH90000016: Found use of deprecated 'collection property' syntax in HQL/JPQL query [null.elements]; use collection function syntax instead [elements(null)].
  </code></pre>
  
  <p>It <em>seems</em> that my query contains an expression like <code>? in associatedUsers.elements</code> where associatedUsers is a <code>Set&lt;String&gt;</code>. I have used such expression in the past but eventually changed all them to the new syntax using a filter helper facility.</p>
  
  <p>However debugging showed me that the <strong>real</strong> where expression is</p>
  
  <pre><code>((enabled = ?) and (organizationId = ?) and ? in elements(associatedUsers))
  </code></pre>
  
  <p>Why does the error get logged if I already use the suggested syntax? Hibernate version is 5.1.0</p>