-->
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: Disabling aspects when loading and initializing a domain obj
PostPosted: Tue Mar 27, 2007 2:04 pm 
Newbie

Joined: Tue Mar 27, 2007 2:00 pm
Posts: 4
I have an application where I am injecting aspects to intercept all setter methods on my persistent objects to track if they have have been dirty or not. However, I do not want this aspect to be invoked when I load the object from the database. I am assuming that Hibernate would invoke the setter method to initialize the newly created object from the data in the database. In this case, I would want the aspect to be disabled until the object is completely initialized and ready to be used.

Is there a way to do that?


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.