I have the following class mapping:
Code:
<class name="Category">
<id name="ID"><generator class="native"/></id>
<any name="ConcreteCategory" cascade="all-delete-orphan" id-type="Int32" meta-type="String" access="field.camelcase">
<meta-value class="PlainCategory" value="PlainCategory"/>
<meta-value class="PlainContext" value="PlainContext"/>
<meta-value class="PlainResource" value="PlainResource"/>
<column name="CategoryType" not-null="true"/>
<column name="ConcreteCategoryID" not-null="true"/>
</any>
...
The ConcreteCategory property is of type IConcreteCategory, which has a Title property. My question is: how can I access that Title property in an HQL query? Hibernate doesn't seem to implicitly know this <any> property's type. Can it be clued into the type and its available properties? I'm guessing the answer is 'no', but I'm hoping to be surprised by a 'yes'.