This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How does IBatis/MyBatis maps jdbcType=CURSOR to javaType=java.sql.ResultSet.

Kumar Raja
Ranch Hand
Posts: 547
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have just started using MyBatis in our project and there are some existing xml mappers and codebase to start with. In those, I noticed that

and in the code

My question is, "resultSet" which is declared as OUT for mode, jdbcType=CURSOR and javaType=java.sql.ResultSet, on what basis we are typecasting the resultset to Collection. java.util.Collection does not extend java.sql.ResultSet. So how is this being done. Also, why it is Collection only, why not a List.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic