Closed gert-wijns closed 10 years ago
Another remark: when not 'left joining' you can just use an extra from and bind the enitites in the where clause. This issue needs to be implemented for the case when you require a left join.
Implemented in v1.8.0.
Use query.getAsSubtype(proxy, subtypeclass), see javadoc.
When an object has a link to a super type of some specific types, it is possible in hibernate to left join the super type and use the property paths of the specific types to narrow the result. This can be done by using a 'cast' or 'as' feature which would return the proxy as one of the subtypes.