aspose file tools
The moose likes Object Relational Mapping and the fly likes Ibatis queries returning null Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Ibatis queries returning null " Watch "Ibatis queries returning null " New topic
Author

Ibatis queries returning null

Collin Dugas
Ranch Hand

Joined: Jul 10, 2009
Posts: 91
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,
 
 
subject: Ibatis queries returning null
 
Two Laptop Bag

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture