ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Somasundaram Pitchaiah" <psoma....@gmail.com>
Subject RE: There is no WRITEABLE property called 'UserId' in AppUser
Date Thu, 06 Apr 2006 15:25:23 GMT
Hi meindert,
I tried replacing UserId by userid in the XML file.but that didn't help.
It still gives :
There is no WRITEABLE property named 'DeviceId' in class

The error occurs while parsing auto generated
XML(AppUser_SqlMap.xml).Following are the lines in that xml in the
resultMap element:

<resultMap id="abatorgenerated_AppUserResult"
    <result column="UserId" property="UserId" jdbcType="BIGINT" />
    <result column="FirstName" property="FirstName" jdbcType="VARCHAR" />

a query in that XML;

<select id="abatorgenerated_selectByPrimaryKey"
     select UserId, FirstName,
     from idTracksDevices.AppUser
    where UserId = #UserId#

I need to parse this XML file so as to get the DAOManager Instance.
I have attached SQlMap.XML,AppUser classes.

Expecting ur help!

Thank You!


The property is called 'userId'


-----Original Message-----
From: Somasundaram Pitchaiah [mailto:[EMAIL PROTECTED]
Sent: 06 April 2006 10:53 AM
To: user-java@ibatis.apache.org
Subject: There is no WRITEABLE property called 'UserId' in AppUser

Hi Every body,
I'm facing problem while using the auto generated SQLmap files
generated by abator in eclipse.

I'm using abator plugin for eclipse(3.1) Given a table AppUser,abator
generates the following  classes automatically:


I'm trying to use these classes to insert & select some values from Db
for AppUser table.

The error I get is that it gives"there is no WRITEABLE property called
UserId in AppUser.This happens while trying to read AppUser_Sqlmap.xml.
But I have the getter & setter method for the field 'Userid' in
AppUser class(auto-generated).

 Files Attached:
-Screenshot .doc(screenshot of the error)
-SampleAction.java(action class)

Expecting ur help!

Thank you!


View raw message