-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Re-setting all property values in AbstractSaveEventListener
PostPosted: Mon Jul 06, 2009 2:17 am 
Newbie

Joined: Tue Dec 09, 2008 6:55 am
Posts: 12
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.