Hi,
I am trying to insert an md5 password field into my database trough hibernate.
I've read on the forum that i should create my own UserType, and i followed the instructions there.
But hey were using an older version of hibernate, ebcause they imported:
net.sf.hibernate.Usertype
but I can only find:
org.hibernate.usertype.UserType
When I try to let my UserType class inherit from this class, It says I should implement the methods:
UserType.assemble(Serializable, Object) MD5sumType.java
UserType.disassemble(Object) MD5sumType.java
UserType.hashCode(Object) MD5sumType.java
UserType.replace(Object, Object, Object) MD5sumType.java
But i have absolutely no idea on how to do this...
Any help on writing a UserType in hibernate3 would be greatly appreciated...
Thx !
|