Package org.apache.ibatis.annotations
Annotation Type CacheNamespaceRef
-
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface CacheNamespaceRef
The annotation that reference a cache.If you use this annotation, should be specified either
value()
orname()
attribute.How to use:
@CacheNamespaceRef(UserMapper.class) public interface AdminUserMapper { // ... }
- Author:
- Clinton Begin, Kazuki Shimizu
-
-
Element Detail
-
value
Class<?> value
Returns the namespace type to reference a cache (the namespace name become a FQCN of specified type).- Returns:
- the namespace type to reference a cache
- Default:
- void.class
-
-
-
name
String name
Returns the namespace name to reference a cache.- Returns:
- the namespace name
- Since:
- 3.4.2
- Default:
- ""
-
-