i just tried it out and it does most of what i was trying to achieve.

like i said in my original post, i am looking for a dynamic way to write out
the state of a persistent object as a string for logging/debugging, so i am
not concerned with the xml binding side of things.

to fulfill my requirements i would like to see (and am happy to work on the
implementation):

1. a way to configure whether proxy's or lazily initialised collections are
initialised and printed or whether they r left uninitialised and just
printed that they r a proxy or that the collection is lazy.  i was thinking
that this behaviour could simply be controlled by a settable boolean
property on the Databinder interface.  however, since a Databinder isn't
currently re-usable, perhaps a openDatabinder(boolean) method on the
SessionFactory is easier.

2. entities recursively printed.

brad

----- Original Message -----
From: "Gavin King" <[EMAIL PROTECTED]>
To: "Anton van Straaten" <[EMAIL PROTECTED]>; "hibernate list"
<[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 6:03 PM
Subject: Re: [Hibernate] writing the properties of a persistent object to a
string


>
> > Isn't that more like:
> >
> > sessionFactory.openDatabinder().bind(foo).toXML();
>
> yes, of course. my bad
>
> > Great feature, btw!
> >
>
>
>
> Is it?? I've never noticed anyone actually using this stuff, so I just let
> it sit and go moldy. I was never sure *why*; Is it
>
> * a good feature but because I never documented it , nobody knows it works
> * a good feature but because I never finished it (missing XML->objects),
> nobody can use it yet
> * a useful feature but the wrong approach
> * not really useful to anyone
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> hibernate-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to