• Post Reply Bookmark Topic Watch Topic
  • New Topic

Ibatis queries returning null  RSS feed

 
Collin Dugas
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am facing the following issue with IBatis.

Whenever the Database is down or there is a problem with the query or configuration error like resultmap containing fields that do not exist, the IBatis query returns null instead of throwing an exception.

I am not able to distinguish between a null resulting from the query returning a null and the null returned due to other issues(DB down, configuration, etc.)

It would be very helpful if anyone can tell me if its an issue with my code or if this is the designed behavior of Ibatis. Any tips would also help.

Regards,
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!