Return-Path: Delivered-To: apmail-incubator-ibatis-user-java-archive@www.apache.org Received: (qmail 32299 invoked from network); 13 Apr 2005 21:15:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2005 21:15:18 -0000 Received: (qmail 97946 invoked by uid 500); 13 Apr 2005 21:15:14 -0000 Delivered-To: apmail-incubator-ibatis-user-java-archive@incubator.apache.org Received: (qmail 97893 invoked by uid 500); 13 Apr 2005 21:15:14 -0000 Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Precedence: bulk Reply-To: ibatis-user-java@incubator.apache.org List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list ibatis-user-java@incubator.apache.org Delivered-To: moderator for ibatis-user-java@incubator.apache.org Received: (qmail 22524 invoked by uid 99); 13 Apr 2005 16:29:29 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C54045.F135541D" Subject: ResultMap Date: Wed, 13 Apr 2005 12:29:19 -0400 Message-ID: <6AB21A501B40F04082ED1F1C21AF80ED2AD22F@TBVSEXCH.corp.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ResultMap Thread-Index: AcVAReetv/MTalH7RG6L1ND59i0coQ== From: "Mathews, Dennis L. \(Tampa Bay Division\)" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C54045.F135541D Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable I have tried all kinds of things to get the result map to work. I have a very simple example and I was able to get an object without using the result map. When I try to use the map, I get a fatal error. Below is the code I am trying to implement and the resulting error. The error indicates that I do not have a WRITEABLE property named "id" in class region, but I have that property in my Region.java file. =20 If you need more information, please let me know. =20 Any help you can provide would be greatly appreciate. =20 =20 =20 Error (just one part of the error..hopefully it is pertinent): =20 Caused by: java.lang.RuntimeException: Error initializing MyAppSqlConfig class. Cause: com.ibatis.common.exception.NestedRuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMap/resultMap/result'. Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'id' in class 'ibatis.Region' =20 Dennis Mathews Systems Developer Bright House Networks Network Operations Center =20 ------_=_NextPart_001_01C54045.F135541D Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

I have tried all kinds of things to get the result = map to work.  I have a very simple example and I was able to get an object without using the result map.  When I try to use the map, I get a = fatal error.  Below is the code I am trying to implement and the = resulting error.  The error indicates that I do not have a WRITEABLE property = named “id” in class region, but I have that property in my Region.java = file.

 

If you need more information, please let me = know.

 

Any help you can provide would be greatly = appreciate.

 

<typeAlias alias=3D"region" = type=3D"ibatis.Region"/>

 

<resultMap id=3D"region-result" = class=3D"region">

    <result property=3D"id" column=3D"region_id" = />

    <result property=3D"name" column=3D"region_name" = />

</resultMap>

 

Error (just one part of the error..hopefully it is pertinent):

 

Caused by: java.lang.RuntimeException: Error = initializing MyAppSqlConfig class.  Cause: com.ibatis.common.exception.NestedRuntimeException: = Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error = parsing XML.  Cause: com.ibatis.common.exception.NestedRuntimeException: = Error parsing XPath '/sqlMapConfig/sqlMap'.  Cause: = com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: = com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMap/resultMap/result'.  Cause: = com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'id' in class = 'ibatis.Region'

 

Dennis Mathews

Systems Developer

Bright House Networks

Network Operations Center

 

------_=_NextPart_001_01C54045.F135541D--