hi,
i've got two tables
Code:
[Container]-->[Modules]
Container has a list of modules and also container has an attribute named *special* that points to a, ehm, special module.
I want to map the list of modules exluding the *special*. Before adding the *special* feature I coded the relationship as a list:
Code:
<list name=modules" table="UI_MODULES" lazy="false" fetch="join">
<key column="UUID_CONTAINER"/>
<list-index column="position"/>
<one-to-many class="domain.Module"/>
</list>
and now added the *special* mapping:
Code:
<many-to-one name="special" class="domain.Module" column="special_uuid" lazy="false" insert="false" update="false" not-null="true"/>
How do I exclude from the list the desired module??
In SQL it could be
Code:
where ui_modules.uuid <> container.special_uuid
thanks!!!!
Hibernate version: 3