Hibernate version: 3.0.3
One of the getter methods of my persistent object simply calls a method on a singleton object, i.e. it does not access any of the class variables. Therefore, this method could work fine if the object is proxied.
However, when I call this method on the object's proxy, Hibernate tries to initialise the proxy, and since this call is made in the business tier (outside the scope of the session) I get an exception.
Is there any way of telling Hibernate not to intercept this particular method?
I don't really want to have to initialise the object, for obvious performance reasons. I also don't want to move the method somewhere else since the method is declared on an interface implemented by the object.
Any help would be appreciated,
Thanks,
Doug.
|