You need to specify your resultClass as string and then call queryForList
On 9/13/06, Okan Çetin <[EMAIL PROTECTED]> wrote:
Hi all;
I want to get some data from database that using ibatis
The code:
Integer user_id=usr.getuser_id ();
List
list=sqlMapper.queryForList("getEventidFromAttendance",
Set your resultClass to java.lang.Integer. With your current setup, you are asking iBATIS to return a List of Lists.
Jeff Butler
On 9/13/06, Okan Çetin <[EMAIL PROTECTED]> wrote:
Hi all;I want to get some data from database that using ibatisThe code:Integer user_id=usr.getuser_id
();List list
Make it resultClass="java.lang.String" or resultClass="string" instead.
Larry
On 9/13/06, Okan Çetin <[EMAIL PROTECTED]> wrote:
Hi all;
I want to get some data from database that using ibatis
The code:
Integer user_id=usr.getuser_id ();
List
list=sqlMapper.queryForList("getEventidFromAttend
Hi all;I want to get some data from database that using ibatisThe code:Integer user_id=usr.getuser_id
();List list=sqlMapper.queryForList("getEventidFromAttendance",user_id);
And the xml file is:..
select event_id from PUBLIC.attendance where user_id = #user_id#
..The problem:String sample=
Could use please post your sqlMap query and result map. On Jul 21, 2006, at 9:57 AM, [EMAIL PROTECTED] wrote: Hi, In my application I am using Ibatis as datamapper and firebird as the backend. In my database, I have 10 records and I want to get first 5 of them. Here I am using
Hi,
In my
application I am using Ibatis as datamapper and firebird as the
backend.
In my database, I
have 10 records and I want to get first 5 of them.
Here I am using
sqlMap.queryForList("getUsersList", null, 0, 5) to retrive the
first 5 records from the databas