[
https://issues.apache.org/jira/browse/IBATIS-450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeff Butler closed IBATIS-450.
------------------------------
Resolution: Duplicate
This is a duplicate of IBATIS-357.
I've had a look at it, but this area of the code is a real maze and I haven't
taken the time to wade through it. It might require Clinton's expertise.
> Nesting resultMap property is not loaded
> ----------------------------------------
>
> Key: IBATIS-450
> URL: https://issues.apache.org/jira/browse/IBATIS-450
> Project: iBatis for Java
> Issue Type: Bug
> Components: SQL Maps
> Affects Versions: 2.3.0
> Environment: Spring, Tomcat 6.0, JDK 1.6.0
> Reporter: Ilya Boyandin
>
> When I call loadDepartmentSemester from the sql-map below the obtained
> DepartmentSemester has null as its "semester" property value. The funny thing
> is that if I add any of the ActualSemester properties to semesterResult (see
> the commented line) without changing anything else then surprisingly the
> "semester" property of the loaded DepartmentSemester is not null anymore, but
> is initialized correctly with the corresponding Semester object.
> <resultMap id="actualSemesterResult"
> class="org.fhj.joanna.domain.ActualSemester">
> <result property="id" column="aks_oid"/>
> <result property="year" column="aks_jahr"/>
> <result property="summerSemester" column="is_ss"/>
> <result property="shouldBeUpToDate" column="muss_gepflegt_sein"/>
> </resultMap>
> <resultMap id="numberedSemesterResult"
> class="org.fhj.joanna.domain.NumberedSemester">
> <result property="id" column="vos_oid"/>
> <result property="number" column="vos_semester"/>
> </resultMap>
> <resultMap id="semesterResult" class="org.fhj.joanna.domain.Semester">
> <!--result property="actualSemester.id" column="aks_oid"/-->
> <result property="actualSemester"
> resultMap="Instructors.actualSemesterResult"/>
> <result property="numberedSemester"
> resultMap="Instructors.numberedSemesterResult"/>
> </resultMap>
> <resultMap id="departmentSemesterResult"
> class="org.fhj.joanna.domain.DepartmentSemester">
> <result property="semester" resultMap="Instructors.semesterResult" />
> <result property="departmentId" column="stg_oid"/>
> <result property="beginDate" column="sinf_sem_beg"/>
> <result property="endDate" column="sinf_sem_ende"/>
> </resultMap>
> <select id="loadDepartmentSemester" resultMap="departmentSemesterResult">
> ...
> </select>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.