commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Hudak" <charles.hu...@cardionet.com>
Subject ToStringBuilder recurse object graph
Date Thu, 29 Apr 2004 22:53:06 GMT
Hi,

I have some JAXB generated objects that constitute an object tree (e.g.
Patient has a Physician has an Address). The problem is that all none of
these objects have a toString method since they are generated by the
jaxb compiler.

When I use the ToStringBuilder.reflectiveToString(..) on the base
object, it only prints out the object identity for the composite object.
Is there any way to get the ToStringBuilder to recursively create the
toString for non-java types?

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message