Re: "queryForList" problem

2006-09-13 Thread Nathan Maves
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",

Re: "queryForList" problem

2006-09-13 Thread Jeff Butler
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

Re: "queryForList" problem

2006-09-13 Thread Larry Meadors
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

"queryForList" problem

2006-09-13 Thread Okan Çetin
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=

Re: Urgent help needed -- queryForList() problem

2006-07-21 Thread Nathan Maves
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    

Urgent help needed -- queryForList() problem

2006-07-21 Thread rambabu.piridi
    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