Hello,
I'm having problems with an interceptor. In certain instances We need to mask data held within an object. We do this using an interceptor. When an object that needs to be masked is loaded, the interceptor sets all of the fields whose data should not be viewable to null. I can step through the code and see that this is occuring correctly. Once this is done though hibernate goes back and repopulates the object.
Looking at the documentation for interceptors (
http://www.hibernate.org/hib_docs/v3/re ... le/#events) this seems valid since it says it allows you to do things before an object is loaded, etc... but what would be the point of making changes to an object before it is loaded only to have hibernate undue those changes right away?
Am I not using interceptors properly? Is there a better way to do what I want?
Hibernate version:
3.0.5
Name and version of the database you are using:
DB2
Thanks,
c.