|
If you set password to null, then it will be saved as null, If you change the state of a domain object, then all properties / fields in that object will be saved.
If you were to split the authentication data away from the user data, and set cascade to no, the password data will not be retrieved with the user data. You will then need to make a call specifically to get the password data when you require it. This approach will mean that your password data will never exist outsied of your session bean or server side tier, and therefore you will not need to set it to null when returning the user data to the client.
The authentication data class will have a link back to the user, but not the other way around.
I hope this helps.
_________________ Jamie Cash
eCommerce Consultancy Limited
The eSecurity Experts
|