I've looked at the help and searched the forums, and I'm sure I'm just missing something so I hate asking but I can't find the answer.
Let's say I've got a mapping like this:
Code:
<?xml version="1.0"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0"
assembly="Eg" namespace="Eg">
<class name="A" table="A">
<id name="Id">
<generator class="assigned"/>
</id>
<bag name="Bees" cascade="all">
<key column="AId" />
<one-to-many class="B" />
</bag>
</class>
</hibernate-mapping>
It is a one-way (not bidirectional) mapping from A->B, and I have an instance of B. I want to retrieve the object of type A that contains my instance of type B. Is there an HQL or ICriteria way of doing this?
Thanks!