ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <larry.mead...@gmail.com>
Subject Re: Mapping Complex Properties (Load all properties)
Date Thu, 06 Jan 2005 19:57:40 GMT
Am I reading this wrong? It looks to me like that is the only result
you have mapped to that bean. The others are all to the Issue bean.

Add other properties, and they will get mapped.

Larry


On Thu, 6 Jan 2005 13:49:24 -0600, Bolinger, Gregg D
<Gregg.Bolinger@intrustbank.com> wrote:
> I have a JavaBean with several properties.  Some of these properties are
> other JavaBeans.  Currently with the code I have I can load these
> complex properties, however, it is only loading 1 property.  Here is my
> file(s)
> 
> <resultMap id="get-issue-result"
> class="com.intrust.anykey.web.modelbeans.Issue">
>         <result property="issueId" column="issue_id"/>
>         <result property="dateCreated" column="date_created"
>           javaType="java.util.Date"/>
>         <result property="dateAccepted" column="date_accepted"
>           javaType="java.util.Date"/>
>         <result property="dateResolved" column="date_resolved"
>           javaType="java.util.Date"/>
>         <result property="dateModified" column="date_modified"
>           javaType="java.util.Date"/>
>         <result property="createdByUser.userId"
>           column="creating_user_id" />
>         <result property="issueNumber" column="issue_number"/>
>     </resultMap>

Mime
View raw message