Hello Ashish,
Regarding a way to not have to create a java class for your result class, you
could very easily just set your resultClass to a java.util.HashMap. This will
be popultated for any results for the key being the name of the field being
returned and the value being the value.
As far
You can use value as the alias if you want to map the count to an Integer or
String resultClass.
select count(*) as value from SOME_TABLE
-Original Message-
From: Ted Schrader [mailto:[EMAIL PROTECTED]
Sent: Friday, January 27, 2006 3:10 PM
To: user-java@ibatis.apache.org
Subject: Re:
You
are barking up the wrong tree. I actually saw this asked over a year ago
but I can't remember the exact response. Basically, this is no supported
and there is a good reason why not. Sorry to be so
vague.
-Original Message-From: bob robertson
[mailto:[EMAIL PROTECTED]Sent:
Gareth,
I'm
not completely sure how Ibatis handles this internally, but my guess is that
because your resultClass is a HashMap and it takes Objects (not Strings
specifically), the handler is not getting called. If you think about it,
the HashMap could contain Integers depending on what