0

I have an application that uses myBatis. I do not want to convert the resultset from mybatis to a Java object. So essentially I do not want a mapped object. I just want the resultset. Is it possible to get that from myBatis? Something like:

Resultset resultset = mybatisMapper.getResults();

I already have a program which processes this Resultset and I cannot change that program.

Raman S
  • 39
  • 1
  • 7
  • From MyBatis project Readme,md : "MyBatis couples objects with stored procedures or SQL statements using a XML descriptor or annotations", So, probably you don't need MyBatis at all. – jmad Mar 16 '16 at 10:15
  • you can have a look here: http://stackoverflow.com/a/43356852/2762716 – Alexander Davliatov Apr 11 '17 at 22:32

1 Answers1

0

If you don't want a mapped object as result of your query you don't have to use a mapper. Try to take a look to this link, I think it can be useful for you:

Ibatis/MyBatis select dynamically without need to create any Pojo / Mapper

Aurasphere
  • 3,841
  • 12
  • 44
  • 71
TeoVr81
  • 989
  • 15
  • 33