I have some complex objects where some attributes are persisted and defined in a hibernate mapping file, while others are not persisted and are derived via getter methods. I'd like to use Hibernate 3.0's XML marshalling feature, but this has the obvious problem that I don't have a way to specify a node value for the derived attribute. Anyone have any suggestions how to work around this other than persisting everything? Is there a way for me to add the derived objects to the mapping file so that hibernate doesn't try to persist these objects but can use the node values?
thanks in advance,
dez
|