From: Brad C. <bra...@wo...> - 2002-10-02 10:47:22
|
actually i meant (2) - but u r right about circular references. so i will fall back to (1), and since the uid is currently printed, u would be able to visually link things up. i was just looking at the XMLDatabinder source and cannot see a way to tell if a proxy or collection is initialised. brad ----- Original Message ----- From: "Gavin King" <ga...@ap...> To: "Brad Clow" <bra...@wo...> Cc: "hibernate list" <hib...@li...> Sent: Wednesday, October 02, 2002 8:34 PM Subject: Re: [Hibernate] writing the properties of a persistent object to a string > > > 2. entities recursively printed. > > Do you mean that > > 1. associated objects get automatically bound to the same document, or > 2. their representation is nested inside the parent object? > > If (1), thats probably a wothwhile idea.....it might even be worth > overloading the semantics of cascade="all" to automatically bind only > lifecycle objects. (This would save problems of binding the whole universe.) > > If (2), that can be accomplished with a stylesheet, but its actually not > desirable since you don't know what to do with circular/shared references. > > Anyway, I think you mean (1) ... which is cool > > |