I'm fairly new to Hibernate, so hopefully this isn't an RTFM case.
I am using Hibernate annotations and I have an entity with a field which will be a password digest. I want to store said digest transparently (using annotations or configuration), but I'm not sure how to go about it. I would think this is a common case, so there must be some easy way to go about this, but I haven't found it yet.
It looks like encryptors are 2-way by default... is there any way to do a one-way encryptor? Or am I going down the wrong path altogether?
I'm using JBoss AS 4.2's Hibernate, along with Seam if that matters.
Thanks in advance,
Greg Stacey
|