nick72 wrote:
And just in case anyone else has this problem...
1. polymorphic joins don't work if the Table per Class Hierarchy inheritance strategy is used, so you need to do an old fashioned join in the where clause
well, I'm using the table per class inheritance mapping strategy and polymorphic joins do work, but I'm using the joined-subclass element to map the subclass. can you give an example of a polymorphic query which doesn't work, please? - i'm eager to understand hibernate limitations.
Anyway I've noticed that the class clause produces buggy SQL whith this inheritance mapping strategy - i'm preparing to file a bug report on jira.
cheers,
radu