ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lucy Fang <f...@acs.rutgers.edu>
Subject RE: Parameter Map for nested class
Date Tue, 30 Nov 2004 17:51:45 GMT

I tried, I still got the same exception.

Actually, I can make result map work with the nested class, like this:
	<resultMap id="get-organization-result" class="organization">
		<result property="orgId" column="orgid" />
		<result property="orgName" column="orgname" />
		<result property="contact.firstName"
column="orgcontactfname" />
		<result property="contact.lastName" column="orgcontactlname"
		<result property="contact.title" column="orgcontacttitle"
nullValue="N/A" />
		<result property="contact.email" column="orgcontactEmail" />
		<result property="contact.phone" column="orgcontactphone" />

But can't make the parameter map work.

-----Original Message-----
From: Douglas [mailto:douglasfsbr@yahoo.com.br] 
Sent: Tuesday, November 30, 2004 12:28 PM
To: ibatis-user-java@incubator.apache.org
Subject: Re: Parameter Map for nested class

Hi Lucy, try :

<parameterMap id="update-organization-param" class="organization">
   <parameter property="contact.firstName" />
   <parameter property="contact.lastName" />
   <parameter property="orgId" />

<update id="updateOrganizationById"
   update organizations set orgcontactfname=?,        
   where orgid=?


View raw message