Error iterating over set

2009-02-18 Thread Poitras Christian
Hi, In iBATIS documentation, it is indicated that iterate tag works over any type of java.util.Collection. When I try to iterate over a Set with iBATIS 2.3.4, I get an exception (see end of email). Is it required to give iterate tag a list? Christian

Dot Magee/HQ/McNichols is out of the office.

2009-02-18 Thread Dot . Magee
I will be out of the office starting 02/18/2009 and will not return until 03/05/2009. I will be glad to answer your email when I return. Thanks.

RE: Error iterating over set

2009-02-18 Thread Poitras Christian
I'm sorry, I didn't include the right exception. Here's the real stack trace and ParameterObject. public class ParameterObject { private Set idSet; public Set getIdSet() { return idSet; } } com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in

Re: Error iterating over set

2009-02-18 Thread Jeff Butler
Hi Christian, This comes up somewhat regularly, so I looked into it a bit. It turns out iBATIS is somewhat schizophrenic about Sets. With dynamic SQL, there are two steps to processing the statement - first the actual SQL statement must be calculated and prepared based on the values in the

Re: aBator does not create getter and setter for new column in table

2009-02-18 Thread sanv
Is there any other workaround to this problem. I am kind of stuck... I need that column in the table :-D Thanks in advance. Jeff Butler-2 wrote: Write a Java program that does this: public static void main(String[] args) { String[] abArgs = {-configfile, config.xml, -overwrite};

Re: aBator does not create getter and setter for new column in table

2009-02-18 Thread Nicholoz Koka Kiknadze
Add it manually :) Yours is such a weird problem, some unique combination of some circumstances. I bet there's some no-framework related problem, both iBatis and iBator are so simple or rather transparent (like everything genial) On Wed, Feb 18, 2009 at 4:41 PM, sanv viv...@gmx.at wrote: Is

RE: Error iterating over set

2009-02-18 Thread Poitras Christian
Thanks! And I bet that iBATIS 3.0 will. Christian -Original Message- From: Jeff Butler [mailto:jeffgbut...@gmail.com] Sent: Wednesday, February 18, 2009 3:46 PM To: user-java@ibatis.apache.org Subject: Re: Error iterating over set Hi Christian, This comes up somewhat regularly, so I

Re: aBator does not create getter and setter for new column in table

2009-02-18 Thread sanv
If I add them manually that would mean I have to add them in which files? In the java files and in the xml files for the sql code? Nicholoz Koka Kiknadze wrote: Add it manually :) Yours is such a weird problem, some unique combination of some circumstances. I bet there's some no-framework

Re: aBator does not create getter and setter for new column in table

2009-02-18 Thread Jeff Butler
Alternatively, you could actually debug the problem and find out where the error lies :) As I stated earlier, place a breakpoint in the getColumns() method - then watch as the column information for the table is returned from the database. I'm willing to bet a virtual Pepsi that the column

Re: aBator does not create getter and setter for new column in table

2009-02-18 Thread Sundar Sankar
If you do search for How to debug for your IDE on google, You would get an idea on how debugging has to be done. It is very simple and am guessing you didnt do it right. The program execution would stop in your breakpoint and you could check for values of variables, method returns etc and see how