Hi,
While debugging through some of the code to fix an issue, I found that while saving, all the collections are wrapped into instances of PersistentCollection and hence the AbstractSaveEventListener delegates to the persister to set all the property values again. I feel it should check to see if its really required to fire a setter or perhaps maintain a list of dirty properties and fire setters only for these properties. Firing all the setters through reflection, especially if there are large number of properties, could lead to a performance degradation. Is there some way already present to achieve this?
Thanks.
Regards Kaizer
|