title: Hibernate restrictions.in function
body: <p>i'm trying to use Hibernate's <code>Restrictions.in("property", collection)</code> function where the collection contains complex Objects. It's not working so i was wondering if there is a limitation with this function, maybe it is limited only to Strings or numerical numbers because all examples i see are in that way.</p>
  
  <p>I would like to compare something like this:</p>
  
  <pre><code>public class Edicion implements java.io.Serializable {
  
      private static final long serialVersionUID = 1L;
  
      private Integer edicionId;
      private Usuario editor;
      private Proyecto proyecto;
      private Date fecha;
  
      ...}
  </code></pre>
  
  <p>There is an objet of this class in the "property" and a collection of them in the Collection. Is it possible to find it this way??</p>