I am using hibernate 3.6.9-Final.
I use merge to persist my entity data into DB. I understand that my entity needs to be copied to the persistent entity before actual persist happens. Often times, I observe the performance of the cascadeBeforeSave function varies from time to time. Further investigation reveals that the issue happens at the BasicProperty setter, where java reflection is being used to copy the values. The setter is executed for each of my columns in the entity table, (as many as 1000 columns per table). The aggregation time of each iteration causes the user to feel the slowness of updating data.
Is this issue fixed in the latest stable version 5.x?
What factor affecting this performance. Can it be tuned?
What other alternative I have to minimize the performance variation?