RE: Best way to define java class for mapping

2006-03-01 Thread Fullam, Jonathan, ALABS
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

RE: Select count(*) in a resultMap

2006-01-27 Thread Fullam, Jonathan, ALABS
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:

RE: cascading insert of complex properties?

2006-01-20 Thread Fullam, Jonathan, ALABS
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:

RE: Custom Type Handler problems

2006-01-13 Thread Fullam, Jonathan, ALABS
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