MyBatis google Guava support

I want to use google Guava collections as return types (resultType / resultMap) in MyBatis and I wanted to know if this is supported out of the box. I haven't found any official documentation regarding the same.

  • Are Guava collections supported as return types out of the box? If so, how can they be included? I am specifically using Guava MultiMap and Table.

  • If this is not supported out of the box, how can I do it? How can I manually apply the result set to the collection / data structure I want?

I am using Java 8, MyBatis 3.4.1 and MySQL as DB

Thanks in advance!

+3


source to share





All Articles