RE: possible to use isEqual inside iterate tag?

2008-09-05 Thread Kyunam Kim
Thanks Jeff. I thought I tried that many times and it didn't work on me (NumberFormatException...) Maybe I brainfarted. Your solution works!! Thanks again. Q -Original Message- From: Jeff Butler [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2008 11:14 AM To: user-java@ibatis.a

Re: possible to use isEqual inside iterate tag?

2008-09-05 Thread Jeff Butler
SELECT #return_columns[].someProperty# FROM $table_name$ Jeff Butler On Fri, Sep 5, 2008 at 1:04 PM, Kyunam Kim <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > When iterating a list of my pojos, I'd like to examine a property of each

Re: Help with parametermap ( List in a Map )

2008-09-05 Thread Jeff Butler
The second form looks correct to me (the first form is definitely not right). Suggest you turn on logging and see what's being generated. Jeff Butler On Fri, Sep 5, 2008 at 8:43 AM, leo71 <[EMAIL PROTECTED]> wrote: > > Hi > I am trying to set a list in a map as the parameterMap > > See the code

possible to use isEqual inside iterate tag?

2008-09-05 Thread Kyunam Kim
Hi all, When iterating a list of my pojos, I'd like to examine a property of each pojo using like SELECT $HOW DO I ACCESS A CURRENT ELEMENT'S PROPERTY HERE?$ FROM $table_name$ Would this be

Re: Calendars in paramter Maps not working

2008-09-05 Thread Jeff Butler
Specify your Calendar type handler directly like this: SELECT * FROM user_event WHERE create_datetime #fromDate,handler=com.foo.CalendarTypeHandler# AND user_id=#id# Things get a little funky when there's a Map involved - iBATIS must not be finding the type handler mapping. Jeff Butler On F

Calendars in paramter Maps not working

2008-09-05 Thread I L
Hi guys, Let me just start by saying this is an awesome project! We were using hibernate which ended up being too complicated for what we needed. We switched to ibatis and it fit like a glove. Keep up the good work! I am having one issue with maps and calendars. I am passing a Java Map as a

Help with parametermap ( List in a Map )

2008-09-05 Thread leo71
Hi I am trying to set a list in a map as the parameterMap See the code below SELECT firstName AS firstName, lastName AS lastName FROM employee WHERE employee_dept_id = #employeeDeptId# and class_id in