hbwf / mybatis

Automatically exported from code.google.com/p/mybatis
0 stars 0 forks source link

@Options do not work #791

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I use mybatis3.0.5 and  ehcache2.5

For example

@Options(useCache=true)
@Select(value="SELECT ...")
public List<Map> getTestList(Map map);

I can get the testList ,but it never use cache !

when I declaration it in xml , it works fine !

Original issue reported on code.google.com by Jackstra...@gmail.com on 1 Mar 2013 at 11:25

GoogleCodeExporter commented 9 years ago
fixed !

Need @CacheNamespaceRef before Mapper

Original comment by Jackstra...@gmail.com on 1 Mar 2013 at 12:45

GoogleCodeExporter commented 9 years ago

Original comment by eduardo.macarron on 1 Mar 2013 at 3:42