Its not the resultMap that's failing, its working correctly returning null as you have no resultset hence, no results to map. If you wanted to enapsulate it all; consider using a stored procedure to return 0 when your query fails; or use a case statement in your SQL to return a 0
On Wed, Jun 3, 2009 at 11:10 AM, sanjeev40084 <sanjeev40...@hotmail.com>wrote: > > yupe..worked but it sucks though how it couldn't map in resultmap. > Thanks. > -- > View this message in context: > http://www.nabble.com/Error-while-query-returns-null-value--tp23855885p23856409.html > Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. > > -- Michael J. McCurrey Read with me at http://www.mccurrey.com