Hibernate version: 2.1.6
I call session.get(clazz, key) and in one case the proxy is returned and in another the persistent object.
After studying "Hibernate in Action" I still don't have a clue, why in one case the proxy is returned and in the other case the persistent object.
The proxy is an interface and my persistent object implements this interface.
Since I assumed that I would receive the persistent object when calling session.get in my code, I get a ClassCastException when the Proxy is returned instead.
Any ideas?
Manri
|