Ok, this is not a easy topic as it requires knowledge about the intrinsics of Hibernate but I hope somebody can answer this.
I am wondering if anybody knows how to get Hibernate to add custom cglib callbacks for POs to the ones it adds anyway. I want to enhance its behavior so I need to intercept a couple of method calls to change their semantic.
Sure enough, I could individually enhance the inidividual POs I get out of Hibernate through any means on the application layer but that's a bit impracticable, so I would like to hook inside Hibernate to add my own Callbacks before the persistent objects get out to the application.
Anybody knows the best way to do this?
|