nullSafeSet()
is invoked both when the entity is being saved / updated and when query parameter has to be set.
Your problem lies with "updateToNow" flag; if it's set to true in your mapping for given entity, you'll always be overwriting the values with the current timestamp. Remove that and you'll be fine.
If you're always setting the timestamp to current (for given column), consider doing so in the database and mapping your property as "generated" instead.
ChssPly76
2009-09-25 04:30:45