The best way to not get a message about passing in a transient persistable object is not to pass in a transient persistable object. Doing what you say above about passing a Date (which is not a persistable object) does not result in such a warning ... for me.