diff --git a/src/main/java/org/apache/ibatis/annotations/CacheNamespaceRef.java b/src/main/java/org/apache/ibatis/annotations/CacheNamespaceRef.java index 649219f5f4d..74c43963037 100644 --- a/src/main/java/org/apache/ibatis/annotations/CacheNamespaceRef.java +++ b/src/main/java/org/apache/ibatis/annotations/CacheNamespaceRef.java @@ -24,7 +24,7 @@ /** * The annotation that reference a cache. *
- * If you use this annotation, should be specified either {@link #value()} and {@link #name()} attribute. + * If you use this annotation, should be specified either {@link #value()} or {@link #name()} attribute. *
* @author Clinton Begin * @author Kazuki Shimizu diff --git a/src/site/es/xdoc/java-api.xml b/src/site/es/xdoc/java-api.xml index 3326285301f..3a6104eb3e0 100644 --- a/src/site/es/xdoc/java-api.xml +++ b/src/site/es/xdoc/java-api.xml @@ -325,7 +325,12 @@ try (SqlSession session = sqlSessionFactory.openSession()) {@CacheNamespaceRefClass<cacheRef>value and name.
+ If you use this annotation, you should be specified either value or name attribute.
+ For the value attribute specify a java type indicating the namespace(the namespace name become a FQCN of specified java type),
+ and for the name attribute(this attribute is available since 3.4.2) specify a name indicating the namespace.
+ @ConstructorArgs@CacheNamespaceRefClass<cacheRef>value として参照先のキャッシュが定義されているネームスペース(完全修飾クラス名)を指定します。value, name
+ このアノテーションを使用する場合は、valueまたはname属性のどちらかを指定する必要があります。
+ value属性にはネームスペースを示すJava型(ネームスペース名は指定したJava型のFQCNになる)を、
+ name属性(この属性は3.4.2以降で利用可能)にはネームスペースを示す名前を指定します。
+ @ConstructorArgs@CacheNamespaceRefClass<cacheRef>value, name.
+ If you use this annotation, you should be specified either value or name attribute.
+ For the value attribute specify a java type indicating the namespace(the namespace name become a FQCN of specified java type),
+ and for the name attribute(this attribute is available since 3.4.2) specify a name indicating the namespace.
+ @ConstructorArgs@CacheNamespaceRefClass<cacheRef>value, which should be the string value of a namespace (i.e. a fully qualified class name).value and name.
+ If you use this annotation, you should be specified either value or name attribute.
+ For the value attribute specify a java type indicating the namespace(the namespace name become a FQCN of specified java type),
+ and for the name attribute(this attribute is available since 3.4.2) specify a name indicating the namespace.
+ @ConstructorArgs@CacheNamespaceRef类<cacheRef>value or name attribute.
+ For the value attribute specify a java type indicating the namespace(the namespace name become a FQCN of specified java type),
+ and for the name attribute(this attribute is available since 3.4.2) specify a name indicating the namespace.