1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.cache;
17
18 import java.util.List;
19
20 import org.apache.ibatis.annotations.CacheNamespaceRef;
21 import org.apache.ibatis.annotations.Options;
22 import org.apache.ibatis.annotations.Options.FlushCachePolicy;
23 import org.apache.ibatis.annotations.Select;
24
25 @CacheNamespaceRef(name = "org.apache.ibatis.submitted.cache.PersonMapper")
26 public interface SpecialPersonMapper {
27
28 @Select("select id, firstname, lastname from person")
29 @Options(flushCache = FlushCachePolicy.TRUE)
30 List<Person> findWithFlushCache();
31
32 }