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.
jed's blog
Hibernate Patterns: polymorphic many-to-one
By jed - Posted on February 6th, 2008
Tagged:
Bookmark/Search this post with:

Delicious
Digg
StumbleUpon
Reddit
Technorati
Recent comments
2 min 2 sec ago
2 hours 6 min ago
1 day 3 hours ago
2 days 1 hour ago
2 days 19 hours ago
1 week 1 day ago
1 week 5 days ago
1 week 5 days ago
2 weeks 13 hours ago
2 weeks 1 day ago