@Test public void getResolvesStoredStrings() throws HibernateException, SQLException { DocumentReference result = (DocumentReference) this.type.nullSafeGet(this.rs, this.names, null); Assert.assertEquals(docReference, result); }
@Override public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException { String serializedReference = rs.getString(names[0]); return resolve(serializedReference); }
DocumentReferenceType implements UserType { @Override public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException { String serializedReference = rs.getString(names[0]); return resolve(serializedReference); } }
DocumentReferenceType implements UserType { @Override public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException { String serializedReference = rs.getString(names[0]); return resolve(serializedReference); }  }
DocumentReferenceType implements UserType { @Override public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException { String serializedReference = rs.getString(names[0]); return resolve(serializedReference); }  @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 Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException { String serializedReference = rs.getString(names[0]); return resolve(serializedReference); }  @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);  }