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
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.
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
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
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};
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
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
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
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
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
10 matches
Mail list logo