Can Mybatis annotation mappers return arrays?

advertisements

I would like to return an array from an annotation based Mybatis mapper to avoid the memory overhead of boxed primitives. Is this possible?

I tried

@Select("select id from some_table")
public long[] selectIds();

with no luck.


It can as of version 3.1. Try with 3.1.1.