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()) { @CacheNamespaceRef Class <cacheRef> - Referencia una cache de otro namespace. Atributos: value, que debe ser el nombre del namespace (ej. un nombre de clase completamente cualificado). + + Referencia una cache de otro namespace. Atributos: 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 diff --git a/src/site/ja/xdoc/java-api.xml b/src/site/ja/xdoc/java-api.xml index 0656380264d..40ac86df73e 100644 --- a/src/site/ja/xdoc/java-api.xml +++ b/src/site/ja/xdoc/java-api.xml @@ -333,7 +333,12 @@ try (SqlSession session = sqlSessionFactory.openSession()) { @CacheNamespaceRef Class <cacheRef> - 別のネームスペースに対して定義されているキャッシュの設定を参照します。 単一値 value として参照先のキャッシュが定義されているネームスペース(完全修飾クラス名)を指定します。 + + 別のネームスペースに対して定義されているキャッシュの設定を参照します。 属性: value, name + このアノテーションを使用する場合は、valueまたはname属性のどちらかを指定する必要があります。 + value属性にはネームスペースを示すJava型(ネームスペース名は指定したJava型のFQCNになる)を、 + name属性(この属性は3.4.2以降で利用可能)にはネームスペースを示す名前を指定します。 + @ConstructorArgs diff --git a/src/site/ko/xdoc/java-api.xml b/src/site/ko/xdoc/java-api.xml index c918bb0fe09..58698df212f 100644 --- a/src/site/ko/xdoc/java-api.xml +++ b/src/site/ko/xdoc/java-api.xml @@ -422,8 +422,12 @@ try (SqlSession session = sqlSessionFactory.openSession()) { @CacheNamespaceRef Class <cacheRef> - 다른 명명공간의 캐시에 대한 참조 - 사용가능한 속성들 : value(명명공간의 이름). + + 다른 명명공간의 캐시에 대한 참조 사용가능한 속성들 : 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 diff --git a/src/site/xdoc/java-api.xml b/src/site/xdoc/java-api.xml index c754735d6d6..4c514ea6a2d 100644 --- a/src/site/xdoc/java-api.xml +++ b/src/site/xdoc/java-api.xml @@ -342,7 +342,12 @@ try (SqlSession session = sqlSessionFactory.openSession()) { @CacheNamespaceRef Class <cacheRef> - References the cache of another namespace to use. Attributes: value, which should be the string value of a namespace (i.e. a fully qualified class name). + + References the cache of another namespace to use. Attributes: 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 diff --git a/src/site/zh/xdoc/java-api.xml b/src/site/zh/xdoc/java-api.xml index 33ca11fa426..ebf3e339642 100644 --- a/src/site/zh/xdoc/java-api.xml +++ b/src/site/zh/xdoc/java-api.xml @@ -538,10 +538,11 @@ flushInterval,size,readWrite,blocking 和 properties。 @CacheNamespaceRef <cacheRef> - 参照另外一个命名空间的缓存来使用。 -属性:value,应该是一个名空间的字 -符串值(也就是类的完全限定名) -。 + + 参照另外一个命名空间的缓存来使用。属性: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.