I think this is IBATIS-313. I took a look at it sometime ago, but couldn't reproduce it. If you could attach a test case to the JIRA ticket that would help a lot.
Jeff Butler
On 10/23/06, Poitras Christian <[EMAIL PROTECTED]> wrote:
Is this bug fixed?I have a this resultMap.<resultMap id="visibilityFavoriteResult" class="VisibilityFavorite"> <result property="oid" column="oid"/> <result property="main" column="main"/> <result property="owner" column="ownerOid" select= "User.getUserByPK"/> <result property="group" column="groupOid" select= "Group.getGroupByPK"/> <result property="user" column="userOid" select= "User.getUserByPK"/> </resultMap>When the column userOid is null, the select "Group.getGroupByPK" is never called even if groupOid is not null....If I reverse the 2 properties in the result map,<resultMap id="visibilityFavoriteResult" class="VisibilityFavorite"> <result property="oid" column="oid"/> <result property="main" column="main"/> <result property="owner" column="ownerOid" select= "User.getUserByPK"/> <result property="user" column="userOid" select= "User.getUserByPK"/><result property="group" column="groupOid" select="Group.getGroupByPK" />
</resultMap>the select "User.getUserByPK" is never called even if userOid is not null....Christian PoitrasInstitut de recherches cliniques de Montréal (IRCM)
