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" />
</resultMap>
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.