I can't find any explanation of the where attribute in the ref docs or HIA. I'd like to know the syntax available to me in a collection's where clause.
I have an entity (Installation) with a date range, containing a Meter and collection of that meter's Configurations, which also have date ranges. The Set of Configurations will be the Configurations of the Meter whose date ranges overlap with the Installation's date range. So in Installation's mapping I want something like
Code:
<set name="Configs" table="Configuration"
where="inst.StartDateTime < config.EndDateTime and inst.EndDateTime > config.StartDateTime">
<key column="MeterID" property-ref="MeterID"/>
...
</set>
How do I get a reference to the parent entity (inst) and nested entity (config) into the where attribute?