ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aashish Gandhi (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Created: (IBATISNET-228) Collection inside a complex property
Date Fri, 08 Jun 2007 15:05:26 GMT
Collection inside a complex property

                 Key: IBATISNET-228
                 URL: https://issues.apache.org/jira/browse/IBATISNET-228
             Project: iBatis for .NET
          Issue Type: Bug
          Components: DataMapper
    Affects Versions: DataMapper 1.6.1
            Reporter: Aashish Gandhi

Say class Employee has a WorkLoad complex property that has few properties such as HoursWorked,
MeetingHours, etc. The WorkLoad class also has a collection of Projects. The resultMap for
Employee is setup as follows - 

<resultMap class="Employee">
      <result property="WorkLoad.HoursWorked" column="hoursworked" />
      <result property="WorkLoad.MeetingHours" column="meetinghours" />
      <result property="WorkLoad.Projects" column="employeeid" select="getProjects"  />

The mapper attempts to cast Project object to Employee object. If the Projects property is
moved to Employee instead, it works fine.

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

View raw message