It appears as though the where clause in something like:
Code:
<class name="Employee" table="emp" where="active=1">
[...]
does not get used when the class is instantiated as part of a collection of another class. For example:
Code:
<class name="Department" table="dept">
<id name="id" column="dept_id" >
<generator class="assigned"/>
</id>
<set name="employees" lazy="true" table="emp">
<key column="dept_id" />
</set>
<property name="name" column="dept_name"/>
</class>
What do you recommend for ensuring that the collections follow the rules of the class?
Secondly, how do you recommend mapping text columns containing something like "Yes"/"No" to a boolean value in an object.