ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Poitras Christian <Christian.Poit...@ircm.qc.ca>
Subject iBATIS 3 BETA 5 bug
Date Wed, 04 Nov 2009 18:56:38 GMT
Hi,

The correction made to bug https://issues.apache.org/jira/browse/IBATIS-679 is not appropriate
in BETA 5.
It enters an infinite loop when 2 resultMap point to each other with discrimator tags.
For example :
    <resultMap id="personMap" type="Person">
        <id property="id" column="id"/>
        <result property="firstName" column="firstName"/>
        <result property="lastName" column="lastName"/>
        <discriminator column="personType" javaType="String">
            <case value="EmployeeType" resultMap="employeeMap"/>
        </discriminator>
    </resultMap>
    <resultMap id="employeeMap" type="Employee" extends="personMap">
        <result property="jobTitle" column="jobTitle"/>
        <discriminator column="employeeType" javaType="String">
            <case value="PersonType" resultMap="personMap"/>
        </discriminator>
    </resultMap>

And a select that returns 'EmployeeType' as personType and 'PersonType' as employeeType.

I've also proposed a correction for this bug.
Is it possible to reopen the bug and apply the patch?

Thanks.
Christian


Mime
View raw message