PGEnumUserType implements EnhancedUserType, ParameterizedType { @Override public void nullSafeSet(final PreparedStatement st, final Object value, final int index, final SessionImplementor session) throws HibernateException, SQLException { if (value == null) { st.setNull(index, Types.VARCHAR); } else { st.setObject(index, (value), 1111); } }  @Override void setParameterValues(final Properties parameters); @Override Object assemble(final Serializable cached, final Object owner); @Override Object deepCopy(final Object value); @Override Serializable disassemble(final Object value); @Override boolean equals(final Object x, final Object y); @Override int hashCode(final Object x); @Override boolean isMutable(); @Override void nullSafeSet(final PreparedStatement st, final Object value,
			final int index, final SessionImplementor session); @Override Object replace(final Object original, final Object target, final Object owner); @Override Class returnedClass(); @Override int[] sqlTypes(); @Override Object fromXMLString(final String xmlValue); @Override String objectToSQLString(final Object value); @Override String toXMLString(final Object value); @Override Object nullSafeGet(final ResultSet rs, final String[] names,
			final SessionImplementor session, final Object owner);  }
@Test public void testNullSaveSet() throws Exception { Object value = new Object(); int index = 1; SessionImplementor session = null; unit.nullSafeSet(st, value, index, session); verify(st).setObject(index, value, 1111); }
@Test public void testNullSaveSetWithNullValue() throws Exception { Object value = null; int index = 1; SessionImplementor session = null; unit.nullSafeSet(st, value, index, session); verify(st).setNull(index, Types.VARCHAR); }