Add a type witness to cast iBatis query results

Proprietary

Turns (List<User>) client.queryForList(..) into client.<User>queryForList(..) (and likewise for queryForMap), since MyBatis 3 returns <E> List<E>, which a cast cannot narrow from List<Object>.

io.moderne.mybatis.AddTypeWitnessToCastQueryResults
mod run . --recipe=io.moderne.mybatis.AddTypeWitnessToCastQueryResults

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.