@Test public void equalsForwardsCall() { Assert.assertTrue(this.type.equals(new DocumentReference("wiki", "Space", "Page"), docReference)); Assert.assertFalse(this.type.equals(new DocumentReference("wiki", "Space", "OtherPage"), docReference)); Assert.assertFalse(this.type.equals("wiki:Space.Page", docReference)); Assert.assertFalse(this.type.equals(docReference, "wiki:Space.Page")); Assert.assertFalse(this.type.equals("wiki:Space.Page", "wiki:Space.Page")); }
@Override public boolean equals(Object x, Object y) throws HibernateException { if (DocumentReference.class.isInstance(x) && DocumentReference.class.isInstance(y)) { return x.equals(y); } return false; }
DocumentReferenceType implements UserType { @Override public boolean equals(Object x, Object y) throws HibernateException { if (DocumentReference.class.isInstance(x) && DocumentReference.class.isInstance(y)) { return x.equals(y); } return false; } }
DocumentReferenceType implements UserType { @Override public boolean equals(Object x, Object y) throws HibernateException { if (DocumentReference.class.isInstance(x) && DocumentReference.class.isInstance(y)) { return x.equals(y); } return false; }  }
DocumentReferenceType implements UserType { @Override public boolean equals(Object x, Object y) throws HibernateException { if (DocumentReference.class.isInstance(x) && DocumentReference.class.isInstance(y)) { return x.equals(y); } return false; }  @Override int[] sqlTypes(); @Override Class<?> returnedClass(); @Override boolean equals(Object x, Object y); @Override int hashCode(Object x); @Override Object nullSafeGet(ResultSet rs, String[] names, Object owner); @Override void nullSafeSet(PreparedStatement st, Object value, int index); @Override Object deepCopy(Object value); @Override boolean isMutable(); @Override Serializable disassemble(Object value); @Override Object assemble(Serializable cached, Object owner); @Override Object replace(Object original, Object target, Object owner); }
DocumentReferenceType implements UserType { @Override public boolean equals(Object x, Object y) throws HibernateException { if (DocumentReference.class.isInstance(x) && DocumentReference.class.isInstance(y)) { return x.equals(y); } return false; }  @Override int[] sqlTypes(); @Override Class<?> returnedClass(); @Override boolean equals(Object x, Object y); @Override int hashCode(Object x); @Override Object nullSafeGet(ResultSet rs, String[] names, Object owner); @Override void nullSafeSet(PreparedStatement st, Object value, int index); @Override Object deepCopy(Object value); @Override boolean isMutable(); @Override Serializable disassemble(Object value); @Override Object assemble(Serializable cached, Object owner); @Override Object replace(Object original, Object target, Object owner);  }