commons-user mailing list archives

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

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:
For additional commands, e-mail:

View raw message