Package org.apache.ibatis.annotations
Annotation Interface CacheNamespaceRef
The annotation that reference a cache.
If you use this annotation, should be specified either value()
or name()
attribute.
How to use:
@CacheNamespaceRef(UserMapper.class) public interface AdminUserMapper { // ... }
- Author:
- Clinton Begin, Kazuki Shimizu
-
Optional Element Summary
-
Element Details
-
value
Class<?> valueReturns 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 nameReturns the namespace name to reference a cache.- Returns:
- the namespace name
- Since:
- 3.4.2
- Default:
""
-