Hi, i dose not found a solution for my problem, so i post it here.
Here is a simplified version of my mapping:
Code:
<class name="FooBase" table="FooBase">
...
<property name="FooType" column="FooType"/>
<property name="CreationDate" column="CreationDate"/>
...
</class>
<joined-subclass name="Foo1" table="MaFoo1" extends="FooBase">
...
</oined-subclass>
<joined-subclass name="Foo2" table="MaFoo2" extends="FooBase">
...
<property name="ChangeDate" column="ChangeDate"/>
</oined-subclass>
<joined-subclass name="Foo3" table="MaFoo3" extends="FooBase">
...
<property name="ChangeDate" column="ChangeDate"/>
</oined-subclass>
Now wants to query all from FooBase where CreationDate is today epect if the instance is Foo2 then i whant to check if ChangeDate is today.
( The real query is much more complex, so ive extract only my problem )
Lanwin