Hi GURUS
I have a class with mapping somting like this:
Code:
<class name="model.ClassificationConsumer" table="object_relations" [color=red]where="code_object1=1 and code_object2=1"[/color]>
.
.
</class>
and when I do
createQuery("from ClassificationConsumer")
everything is Ok
But when i haveanother class where:
Code:
<class .....
.....
<set name="ClassificationConsumer" lazy="true" cascade="all-delete-orphan">
<key column="id_object1" not-null="true"/>
<one-to-many class="model.ClassificationConsumer" />
</set>
</class>
thist arbitrary SQL WHERE condition
Code:
where="code_object1=1 and code_object2=1
do not work
Tel me WHY