Hibernate 3.3 Upgrade Tips

Steve:

While upgrading to the latest version of Hibernate, I ran into a couple of issues that I thought I would document. Hopefully these tips help out someone else who runs into the same problems.

Posted 08/24/2008 - 23:49 // 3 comments

Hibernate Patterns: polymorphic many-to-one

Jed:

Recently I found myself in a situation where I needed to define a persistent many-to-one relationship in which the concrete class of the many side could vary. In the past I’d had some issues with class inheritance and Hibernate, which can get sticky because of Hibernate proxies: you can’t always cast the proxies to the desired type. Since I had to find a way to make this work, I decided to give interface inheritance a try.

Posted 02/06/2008 - 17:54 // 8 comments