title: Morphia equal ignoring fields
body: <p>I have a class as follows:</p>
  
  <pre><code>@Entity 
  public class Wrap{
      private Metadata meta;
      // And more ...
  }
  public class Metadata{
      private List&lt;Image&gt; images;
      private String price;
      private Integer value;
      // And more ...
  }
  public class Image  {
      private String url;
      private String hash;
      @Override
      public int hashCode() {
          int h = 7;
          h = 89 * h + Objects.hashCode(this.hash);
      }
  
      @Override
      public boolean equals(Object obj) {
          if (obj == null) {
              return false;
          }
          if (getClass() != obj.getClass()) {
              return false;
          }
          final Image other = (Image) obj;
          return (!Objects.equals(this.hash, other.hash));
      }
  }
  </code></pre>
  
  <p>The normal query <code>ds.createQuery(Wrap.class).field("meta").equal(otherMetadata);</code> will compare all the fields (as expected). </p>
  
  <p>As you can see in the code, the class Image overrides equals&amp;hashcode in order to ignore the field <code>url</code>. That works for Java. But there is a way in morphia to query (using .equal or .filter or anything else) ignoring some fields?</p>