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?
|