From: Brad C. <bra...@wo...> - 2002-10-01 21:44:06
|
i often add a toString method (that prints out the values of all = properties) to my persistent objects so that i can get detailed logging = of an object's state when it is loaded, saved, etc. i have just written = a printToString method for the Session interface/SessionImpl class that = does this dynamically, taking into account proxy's, lazy collections and = PersistentEnum types, so i don't have to write & maintain the toString = methods (for this purpose) anymore. i know gavin would rather the = Session interface didn't grow anymore :-), but i think this may be = useful for others to. comments? brad |