But the Ibatis was returning List object.
Why Ibatis can not convert from List to ArrayList. ?????????????
From: Rambabu Piridi (WT01 - TELECOM SERVICE PROVIDER)
Sent: Friday, July 28, 2006 2:17 PM
To: '[email protected]'
Subject: Very Urgent-Badly need you people Help
--- Check the result mapping for the 'properties' property.
--- Cause: java.sql.SQLException: Error: executeQueryForObject returned too many results.
<result property="userid" column="USR_ID"/>
<result property="role" column="ROLE_ID"/>
<result property="description" column="DESCRIPTION"/>
<result property="properties" column="USR_ID" select="select2" />
</resultMap>
( I have set method for properties attribute and this accepts object of type property)
<resultMap id="userMapTwo" class="property">
<result property="userid" column="USR_ID"/>
<result property="propertyname" column="PROPERTY_NAME"/>
<result property="propertyvalue" column="PROPERTY_VALUE"/>
</resultMap>
<statement id="RamBabu" resultMap="userMapOne">
select * from USR_BASIC_INFO
</statement>
<statement id="select2" resultMap="userMapTwo">
select * from USR_EXTENSION_INFO where USR_ID=#userid#
</statement>
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. www.wipro.com |
