I have a Class, "User", which has the field "Password". I don't want to have the property accesible EVERY time I have to handle a User, but I do want to use NHibernate for persisting ALL the data, even the password. I was planning on using specific functions for changing the password, but a question arised: is it possible to map the class User in such a way that I can NOT LOAD the password for usual class handling, but DO LOAD it when I want to use the function for password changing?
In case you are wondering, I do save the password encrypted, but still I don't like carrying it around all the time...
Thanks!
Alejandro.
|