I have a question similar to this:
http://forum.hibernate.org/viewtopic.php?t=951806
When calling saveOrUpdate, I don't want to persist all properties of the object at times while at other times, I like to persist them all.
Specifying update=false in the mapping will result in saveOrUpdate NEVER persisting the property which is undesirable. Is there a way to programatically specify which properties to exclude from persisting right before the call to saveOrUpdate()
I know I can do this by writing HQL or by creating two similar properties and persisting one of them but I'm hoping for a simple solution like:
session.excludeFromUpdate(User.class, "password");
I know this is too ideal but is there anything of the sort?