com.ibatis.common.beans.ProbeException when compare with nested bean's list 
property
------------------------------------------------------------------------------------

                 Key: IBATIS-457
                 URL: https://issues.apache.org/jira/browse/IBATIS-457
             Project: iBatis for Java
          Issue Type: Bug
          Components: SQL Maps
    Affects Versions: 2.3.0
         Environment: WindowXP
            Reporter: chflying


there are three beans as below

public class TestBean1 {
        private TestBean2 bean2 = null;
        
        // get & set method....
}

public class TestBean2 {
        private List list = null;

         // get & set method....
}

public class TestBean3 {
        private String code = null;
        private String name = null;

       // get & set method....
}

sql map as below

    <select id="testSelect" parameterClass="bean1" resultClass="bean1">
    SELECT 
        CODE,NAME
    FROM 
        TEST
    WHERE
        <iterate property="bean2.list" conjunction=" OR ">
                <isEqual property="bean2.list[].code" compareValue="00">
                        CODE IS NULL
                </isEqual>
                <isEqual property="bean2.list[].code" compareValue="01">
                        CODE='001'
                </isEqual>
                <isEqual property="bean2.list[].code" compareValue="02">
                        CODE='002'
                </isEqual>
        </iterate>
    </select>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to