-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: hibernate3 and md5
PostPosted: Fri Feb 24, 2006 12:38 pm 
Beginner
Beginner

Joined: Thu Oct 20, 2005 12:35 pm
Posts: 21
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 !


Top
 Profile  
 
 Post subject: why
PostPosted: Tue Feb 28, 2006 6:21 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
Why do not you just save that MD5 as string?

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.