Here is the last SQL which generates the error:
Code:
select
childrenfi0_.LIBRARY_FK as LIBRARY4_1_,
childrenfi0_.NODE_ID as NODE1_1_,
childrenfi0_.name as name1_,
childrenfi0_.NODE_ID as NODE1_0_0_,
childrenfi0_1_.INSTANCE_NAME as INSTANCE2_0_0_,
childrenfi0_1_.CREATION_DATE as CREATION3_0_0_,
childrenfi0_1_.LAST_MODIFIED_DATE as LAST4_0_0_,
childrenfi0_1_.DELETE_DATE as DELETE5_0_0_,
childrenfi0_1_.STATUS as STATUS0_0_,
childrenfi0_1_.OWNER_FK as OWNER7_0_0_,
childrenfi0_1_.CREATION_USER_FK as CREATION8_0_0_,
childrenfi0_1_.LAST_MODIFIED_USER_FK as LAST9_0_0_,
childrenfi0_1_.DELETE_USER_FK as DELETE10_0_0_,
childrenfi0_.NAME as NAME17_0_,
childrenfi0_.DESCRIPTION as DESCRIPT3_17_0_,
childrenfi0_.LIBRARY_FK as LIBRARY4_17_0_,
childrenfi0_.CONTENT as CONTENT17_0_
from
MOF_FILE childrenfi0_, NODES childrenfi0_1_
where
childrenfi0_.NODE_ID=childrenfi0_1_.NODE_ID
and
:nodeStatus.nodeStatusParam = STATUS
and childrenfi0_.LIBRARY_FK=?
This shows that subclass table is joined with master class but the STATUS column is not prefixed with NODES alias childrenfi0_1_.
I've tried to change the filter declaration in the mapping to prefix the column name with the table name:
Code:
<filter name="nodeStatus" condition=":nodeStatusParam = NODES.STATUS"/>
but it gets the same error.[/code]