Hi all, nice forum!! ;-)
I have a problem with the persistent-bag. We are using hibernate for the db-mapping and I wanted to use castor to create some XML from some db-objects.
Now the problem is, that Castor doesnt support the type List, just ArrayList but in the POJOs from the db I always have the persistentbags.
Question:
- Can I get rid of the PersistentBags? Castor also uses persistent bags, but just in cases when it does not know the type of the list-values. Otherwise it creates an ArrayList and the marshalling - unmarshalling is really one to one.
- If I can not get rid of them (what I suppose), any idea how to handle that? I guess there are some smart workarounds.
Thanks for help,
Cheers,
Robert.
|