Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 18394 invoked from network); 17 Aug 2007 22:34:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Aug 2007 22:34:14 -0000 Received: (qmail 59817 invoked by uid 500); 17 Aug 2007 22:34:06 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 59801 invoked by uid 500); 17 Aug 2007 22:34:06 -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 59763 invoked by uid 99); 17 Aug 2007 22:34:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 15:34:06 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of clinton.begin@gmail.com designates 209.85.198.188 as permitted sender) Received: from [209.85.198.188] (HELO rv-out-0910.google.com) (209.85.198.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 22:34:03 +0000 Received: by rv-out-0910.google.com with SMTP id c27so523369rvf for ; Fri, 17 Aug 2007 15:33:43 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:references:in-reply-to:subject:date:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:content-language:message-id; b=Q4C4DvmNcnjLANlpKLTInP8atrlak7kQp+EL7w34v/aGy8+EQrV6qb0kVNm5mK97oC4HTm8w5I7ZXq+j0v/NtBGQMj3myWLCkeZ7KlrLlKmZzB3Y07/Vlcz9j6YfEHSlPi/Hns7VnQ6BQF66JEMq69cSg4Bnb7wJvSWPCcA1jVk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:references:in-reply-to:subject:date:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:content-language:message-id; b=CsFFYJBNvwN6DJ0GVrXsW+SfbvCtXGTZ+ig2jB2dIAs1Ed6vsWDwoA+3IOAuB96/Z7Ait6biQIY2+I2goDQ5ED9A616ncSD53tNdiDRkTnrys/sE7Ad02gW2KOs+0jlQiUFppEQMx/u54YnzlPRzyzztYTB10AqTp5vNcY65xEw= Received: by 10.141.15.19 with SMTP id s19mr1480758rvi.1187390023210; Fri, 17 Aug 2007 15:33:43 -0700 (PDT) Received: from DARKSTAR ( [142.179.145.108]) by mx.google.com with ESMTPS id c3sm5231350rvf.2007.08.17.15.33.42 (version=SSLv3 cipher=OTHER); Fri, 17 Aug 2007 15:33:42 -0700 (PDT) From: "Clinton Begin" To: References: <523333.69214.qm@web30803.mail.mud.yahoo.com> In-Reply-To: <523333.69214.qm@web30803.mail.mud.yahoo.com> Subject: RE: Can anyone offer help on "There is no WRITEABLE property named 'lName'" Date: Fri, 17 Aug 2007 16:33:12 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcfhGGtbsLkgjc+BRse2CnQyI+5cbQABeadA Content-Language: en-ca Message-ID: <46c62246.03b48c0a.5e06.2f9a@mx.google.com> X-Virus-Checked: Checked by ClamAV on apache.org The property name would be LName. Javabeans is a screwy spec. Thanks to the capitalization rules, if you have two uppercase letters at the beginning of a property name, it doesn't change the case. God forbid they just leave the damn capitalization as it is typed in the first place. Would TitleCase properties have killed us all? Does anyone think iBATIS 3 should be completely case insensitive in this regard? Really, do you ever have a need to differentiate two properties only by case? Clinton -----Original Message----- From: Robert Glover [mailto:robertgloverjr@yahoo.com] Sent: August-17-07 3:48 PM To: user-java@ibatis.apache.org Subject: Can anyone offer help on "There is no WRITEABLE property named 'lName'" I'm at my wits end, tearing my hair out over this problem. I use Abator to generate all my IBatis classes and XML. When my Spring web app starts up I get this error: Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'lName' in class 'frb.bsd.abator.domain.IavAssetInfo2' I have 27 tables, so I tried commenting out the offending table to see what would happen then. What happened is I got the same error but on a different table. That different table also had an "lName" property. I did a lot of google-ing and most times this problem is because manually created iBatis XML has the wrong capitalization. But I did not write any of this, abator did. The offending tables have underscores in their table name, which Abator removes. I don't think that is it. However in addition to that, the column names in the tables have underscores. The offending field, "lName", is actually defined in the Oracle 10g database as "L_NAME". The abator generated set statements look okay to me. Here is one of them. I don't see how this would cause the problem, so I'm at my wits end. /** * This method was generated by Abator for iBATIS. * This method sets the value of the database column ATADMIN.IAV_ASSET_INFO2.L_NAME * * @param lName the value for ATADMIN.IAV_ASSET_INFO2.L_NAME * * @abatorgenerated Fri Aug 17 15:06:09 EDT 2007 */ public void setLName(String lName) { this.lName = lName; }