Not sure what you understood what I was saying. I AM doing the join in
SQL, and I AM using a custom result handler. The problem is MyBatis
still loads the entire result set into a map, even when using a custom
result handler, so it can do the collection mapping.