title: How can I select objects by list size in HQL?
body: <p>My entity is defined like this:</p>
  
  <pre><code>public class Entity implements Serializeable {
        @ManyToMany(mappedBy="entities")
        private List&lt;OtherEntity&gt; otherEntities;
  
  }
  </code></pre>
  
  <p>How can I select in HQL all Entities which have more than one OtherEntity?</p>