Nested sql statements in resultmaps fails if the previous property is set to
null
---------------------------------------------------------------------------------
Key: IBATIS-313
URL: http://issues.apache.org/jira/browse/IBATIS-313
Project: iBatis for Java
Type: Bug
Components: SQL Maps
Versions: 2.1.7
Reporter: Hung Huynh
<resultMap id="documentResult" class="document"
extends="Revision.revisionRootResult">
<result property="uniqueId" column="uniqueDocumentId"/>
<result property="revisions" column="id" select="Document.listRevisions"/>
</resultMap>
If the property "uniqueId" is set to null, then the select statement
"Document.listRevisions" returns null.
Quick fix is to set the selectstatement before the null property:
<resultMap id="documentResult" class="document"
extends="Revision.revisionRootResult">
<result property="revisions" column="id" select="Document.listRevisions"/>
<result property="uniqueId" column="uniqueDocumentId"/>
<</resultMap>
For some reason this works.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira