Hi All,
I created a custom data type by extending MutableType, as it seemed to suit my needs best. All worked well, until i tried doing a session.find, and tried to bind a parameter using my type. I tried using Hibernate.custom(mytype) and got an exception stating that i must extend UserType.
I fixed/hacked the problem by implementing usertype (in addition to extending mutable type), and just having to add
Code:
public Object nullSafeGet(ResultSet arg0, String[] arg1, Object arg2) throws HibernateException, SQLException {
return super.nullSafeGet(arg0, arg1);
}
is this ok, or do i need to pick one (mutabletype) or the other (usertype) to extend.
tnx.