Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 70104 invoked from network); 6 Oct 2005 13:41:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2005 13:41:13 -0000 Received: (qmail 80407 invoked by uid 500); 6 Oct 2005 13:41:11 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 80299 invoked by uid 500); 6 Oct 2005 13:41:10 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 80281 invoked by uid 500); 6 Oct 2005 13:41:10 -0000 Delivered-To: apmail-incubator-ibatis-dev@incubator.apache.org Received: (qmail 80276 invoked by uid 99); 6 Oct 2005 13:41:09 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 06:41:09 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 94CEC21F for ; Thu, 6 Oct 2005 15:40:48 +0200 (CEST) Message-ID: <750334158.1128606048607.JavaMail.jira@ajax.apache.org> Date: Thu, 6 Oct 2005 15:40:48 +0200 (CEST) From: "Jim Krygowski (JIRA)" To: ibatis-dev@incubator.apache.org Subject: [jira] Commented: (IBATIS-184) ProbeException: There is no WRITEABLE property when using property[0].subproperty notation in ResultMap In-Reply-To: <601255458.1124728409447.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/IBATIS-184?page=comments#action_12331494 ] Jim Krygowski commented on IBATIS-184: -------------------------------------- Hi Clinton- That's fine. I was basing the bug report on the documentation which seemed to indicate that this was a usage model iBatis supported. What does the documentation mean by this?: Side Bar: Object Graph Navigation (JavaBeans Properties, Maps, Lists) Throughout this document you may have seen objects accessed through a special syntax that might be familiar to anyone who has used Struts or any other JavaBeans compatible framework. The Data Mapper framework allows object graphs to be navigated via JavaBeans properties, Maps (key/value) and Lists. Consider the following navigation (includes a List, a Map and a JavaBean): Employee emp = getSomeEmployeeFromSomewhere(); ((Address) ( (Map)emp.getDepartmentList().get(3) ).get ("address")).getCity(); This property of the employee object could be navigated in an SqlMapClient property (ResultMap, ParameterMap etc...) as follows (given the employee object as above): "departmentList[3].address.city" Clearly, from your comment, this is unsupported. Maybe this should be removed from the documentation? > ProbeException: There is no WRITEABLE property when using property[0].subproperty notation in ResultMap > ------------------------------------------------------------------------------------------------------- > > Key: IBATIS-184 > URL: http://issues.apache.org/jira/browse/IBATIS-184 > Project: iBatis for Java > Type: Bug > Components: SQL Maps > Versions: 2.0.9, 2.1.5 > Environment: Windows 2000/XP, JDK 1.5 > Reporter: Jim Krygowski > Assignee: Clinton Begin > > I'm getting the following error: > com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'requests[0]' in class 'com.saishintechnology.dto.Patient' > at com.ibatis.common.beans.ClassInfo.getSetterType(ClassInfo.java:174) > at com.ibatis.common.beans.GenericProbe.getClassPropertyTypeForSetter(GenericProbe.java:229) > when I try to use an extended type property mapping in my ResultMap. The property mapping looks like this: > > The javabean/pojo's getters/setters follow the JavaBeans indexed property conventions: > public void setRequests(int argIndex, Request)... > public void addRequest(Request argRequest)... > public List getRequests()... > public Request getRequests(int argIndex)... > I notice that when the ClassInfo getSetterType method is invoked it uses requests[0] as the property type. I think that the [0] should have been stripped out at this point. Is this a bug or am I missing something from either my pojo or the result property configuration? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira