Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 26212 invoked from network); 13 Mar 2006 13:14:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Mar 2006 13:14:00 -0000 Received: (qmail 35366 invoked by uid 500); 13 Mar 2006 13:13:59 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 34887 invoked by uid 500); 13 Mar 2006 13:13:57 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 34876 invoked by uid 99); 13 Mar 2006 13:13:57 -0000 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [206.190.49.52] (HELO web53102.mail.yahoo.com) (206.190.49.52) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 13 Mar 2006 05:13:56 -0800 Received: (qmail 56663 invoked by uid 60001); 13 Mar 2006 13:12:13 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VETi3i77fpccRqGB8Tcosr9e/ybZm5MCfyMDPK8ffSFfNFOwgwvSzvLKjFEjTasymyf0fwA1CTaT3v0PaMPFpKUxzj0dsZo8li7ie0h1xnQ2F50GlBJjZqCLl0CQRCF6qe9z8QKYmLXXCqmFykh3nE4aA4GwjHTn63Zq9E+8QyY= ; Message-ID: <20060313131213.56661.qmail@web53102.mail.yahoo.com> Received: from [68.44.106.138] by web53102.mail.yahoo.com via HTTP; Mon, 13 Mar 2006 05:12:11 PST Date: Mon, 13 Mar 2006 05:12:11 -0800 (PST) From: Prashanth Sukumaran Subject: Re: Problem in using complex objects in ibatis2.0 To: user-java@ibatis.apache.org In-Reply-To: <697DB8FEDD187844AF9A6DFAD66DAFE3057895D5@indel702nts.in.fid-intl.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-924043611-1142255531=:54392" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-924043611-1142255531=:54392 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi Kishlay It is not the problem with iBatis. You cannot have the member variable with the second letter Capital. Instead of wHistVO try whistVO. This will work. The getter and setter would be getWhistVO and setWhistVO. Thanks Prashanth. "Nikesh, Kishlay" wrote: Hi, I am having a java-class(getter/setter) which has a reference of another java class in it. public class universeVO implements Serializable { private int universeid; private String description; private weightingHistoryVO wHistVO; } Each universeId in the above class can have multiple weightingHistoryVOs. I have used the following entries in my Universe.xml file :- SELECT * from aaUniverse, aaWeightingHistory WHERE aaUniverse.UniverseId=aaWeightingHistory.UniverseId AND aaUniverse.UniverseId = #universeid# The above code when used gives me this error on WAS/Sybase environment - Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'wHistVO' in class 'com.asset.universeVO' at com.ibatis.common.beans.ClassInfo.getSetterType(ClassInfo.java:174) at com.ibatis.common.beans.GenericProbe.getClassPropertyTypeForSetter(GenericProbe.java:250) Can anyone please advice what could be the problem ? Many Thanks, Kishlay Kumar Nikesh Important: Any comments or statements made in this email are not necessarily those of Fidelity Business Services India Pvt. Ltd. or any of the Fidelity group companies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. if you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Fidelity Business Services India Pvt. Ltd. may be subject to our monitoring procedures. --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. --0-924043611-1142255531=:54392 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi Kishlay
 
It is not the problem with iBatis.  You cannot have the member variable with the second letter Capital.
 
Instead of wHistVO  try  whistVO.  This will work.
 
The getter and setter would be getWhistVO and setWhistVO.
 
Thanks
Prashanth.

"Nikesh, Kishlay" <kishlay.nikesh@fidelity.co.in> wrote:
Hi,
I am having a java-class(getter/setter) which has a reference of another java class in it.
public class universeVO implements Serializable
{      
        private int universeid;
        private String description;
        private weightingHistoryVO wHistVO;
}
Each universeId in the above class can have multiple weightingHistoryVOs.
I have used the following entries in my Universe.xml file :-
  <typeAlias alias="universe" type="com.asset.universeVO"/>
  <typeAlias alias="weight" type="com.asset.weightingHistoryVO"/>
  <resultMap id="getUniverseResult" class="universe">
        <result property="universeid" column="UniverseId" />
        <result property="wHistVO.universeid" column="UniverseId" />
  </resultMap>
  <statement id="getAllUniverse" parameterClass="int" resultMap="getUniverseResult">
        SELECT * from aaUniverse, aaWeightingHistory WHERE
                aaUniverse.UniverseId=aaWeightingHistory.UniverseId
                AND aaUniverse.UniverseId = #universeid#
  </statement>
The above code when used gives me this error on WAS/Sybase environment -
Caused by:
com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'wHistVO' in class 'com.asset.universeVO'
        at com.ibatis.common.beans.ClassInfo.getSetterType(ClassInfo.java:174)
        at com.ibatis.common.beans.GenericProbe.getClassPropertyTypeForSetter(GenericProbe.java:250)
Can anyone please advice what could be the problem ?
Many Thanks,
Kishlay Kumar Nikesh
Important: Any comments or statements made in this email are not necessarily those of Fidelity Business Services India Pvt. Ltd. or any of the Fidelity group companies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. if you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Fidelity Business Services India Pvt. Ltd. may be subject to our monitoring procedures.


Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze. --0-924043611-1142255531=:54392--