Hi - does anyone know of a generic method of converting an object graph generated by Hibernate to XML?
I am thinking along the lines of creating an XMLReader that uses reflection to discover bean properties and Hibernate.isPropertyInitialized(object,propertyName) to ensure that it doesn't try to drill down into uninitialised proxies/collections.
Has anyone tried something similar, or know of a more efficient way of extracting the data as XML?
I guess it would also be nice to be able to do the opposite, i.e. convert the XML back into objects - though this isn't something I need to do just yet.
Thanks,
Doug.
|