title: HQL to CriteriaQuery when using bitwise operators
body: <p>How do I convert this into a CriteraQuery:</p>
  
  <pre><code>select n
  from TagRegistration t
  join t.Tag n
  where t.Status &amp; :status &gt; 0
  order by count(t.ID) desc
         , n.Name asc
  </code></pre>