I am writing an application in Java that produces a XML file using data obtained through JDBC. This is a recursive one-to-many relationship much like the structure of an XML document. It basically looks like this:
Object A contains multiple object B's. Object B contains multiple object C's. And so on.
Is there a handy design pattern I can use for this or should I just throw a collection in each class and live with a complex DAO class?