Archive for June, 2009

Hibernate Remote Lazy Loading to the Rescue

I’ve written a couple of posts recently on Lazy Loading, and some of the issues relating to how Hibernate creates and manages proxies.  While lazy loading itself is meant to improve performance, it can still lead to exceptions caused by objects being detached from their session.  As a web service becomes more distributed, and the [ READ MORE ]

Class Cast Exception is a Proxy Problem – Revisited using the Visitor Pattern

In my previous post: ClassCastException is a Proxy Problem I talked about how Hibernate tries to optimize the loading of objects by lazily fetching the parent class object, and returning a proxy for the subclass instead of the actual subclass, thus causing a ClassCastException when the proxy is cast to the actual subclass.  The proxied object doesn’t contain member [ READ MORE ]

Her World – Installment 5

Jenna sat looking out of her bay window in her old brownstone.  As the sun’s rays beamed on her face she drifted deep into thought;  this was the place she had hoped to call home again.  She hadn’t had any expectations for her return.  She had always thought of this place as home, because of [ READ MORE ]