In fact I have a problem with some queries.
I have a mapping that looks like that:
Code:
<class name="eg.Parent">
<id name="id" column="ParentId" type="long">
<generator class="native"/>
</id>
<component class="eg.Child" name="child">
<property name="name" column="child_name"/>
<set name="addrs" table="ADDR" lazy="true">
<key column="parent_id" />
<many-to-many class="eg.Addr"/>
</set>
</component>
</class>
Then when I do such a query
Code:
select parent.child from eg.Parent parent
join parent.child.addrs addr where (addr.name in ( 'name1'))
The query seem to works (the 'where' part) but the returned Child objects doesn't contains the addrs collection.
Christophe