ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mkhitaryan, Aram" <Aram.Mkhitar...@lycos-europe.com>
Subject RE: Need help---Mapping of Complex properties
Date Fri, 28 Jul 2006 04:19:51 GMT
<result property="properties" column="USR_ID" select="RamBabuExtension" />


You missed also column attribute. 

Also use USR_ID=#value# instead of USR_ID=#usr_id#

Add this and try again.






From: rambabu.piridi@wipro.com [mailto:rambabu.piridi@wipro.com] 
Sent: Friday, July 28, 2006 9:07 AM
To: user-java@ibatis.apache.org
Subject: RE: Need help---Mapping of Complex properties




<resultMap id="userMapForStaticAndDynamicRamBabu" class="user" groupBy="userid">

<result property="userid" column="USR_ID"/>

<result property="username" column="USR_NAME"/> 

<result property="role" column="ROLE_ID"/> 

<result property="description" column="DESCRIPTION"/> 

<result property="properties" select="RamBabuExtension" />


<resultMap id="userExtensionMapForStaticAndDynamicRamBabu" class="UserProperty">

<result property="propertyname" column="PROPERTY_NAME"/> 

<result property="propertyvalue" column="PROPERTY_VALUE"/> 


<statement id="RamBabu" resultMap="userMapForStaticAndDynamicRamBabu"> 

select * from USR_BASIC_INFO


<statement id="RamBabuExtension" resultMap="userExtensionMapForStaticAndDynamicRamBabu">

select * from USR_EXTENSION_INFO where USR_ID=#usr_id#




Thanks n Regards,


Rambabu Piridi.


The information contained in this electronic message and any attachments to this message are
intended for the exclusive use of the addressee(s) and may contain proprietary, confidential
or privileged information. If you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and destroy all copies
of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email
and any attachments for the presence of viruses. The company accepts no liability for any
damage caused by any virus transmitted by this email.

View raw message