I'm just curious if there is a way to bypass the beforeUpdate()
and similar methods of a certain domain class.
I need it for restoring the original password of a user. The beforeUpdate
proceeds the password hashing algorithm which I wouldn't like to call twice.
The only solution I could come up with is to use direct connection to the database and therefore bypass the Hibernate
. This I don't like much cause of DB vendor lock-in etc.
Thanks for any advice.