Hi everyone,
I got a mapping like this:
<list name="StatusHistory" table="lossevent_statushistory" > <key column="LossEventId"></key> <index column="Position"></index> <composite-element class="LossEventStatusHistory"> <parent name="LossEvent"/> <property name="ModifyDate"/> <property name="Status" length="32"/> <many-to-one name="User" class="UserInfo" column="UserId"/> </composite-element> </list>
and I wish to perform a query with a restriction on a particular Position's index. I'm wondering if it's actually possible to do this using a Restriction or something that give me back an AbstractCriterion.
Thank you,
fadeh
|