From 2f11dd80fd8c5980e0bd7da4e8c6de2eb817e440 Mon Sep 17 00:00:00 2001 From: Michael Hunger Date: Wed, 12 Jan 2011 10:51:03 +0100 Subject: [PATCH] renamed Index.name to Index.indexName to avoid confusion with potential name property --- .../java/org/springframework/data/annotation/Indexed.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spring-data-commons-core/src/main/java/org/springframework/data/annotation/Indexed.java b/spring-data-commons-core/src/main/java/org/springframework/data/annotation/Indexed.java index 0fba4601a..0937fd6fa 100644 --- a/spring-data-commons-core/src/main/java/org/springframework/data/annotation/Indexed.java +++ b/spring-data-commons-core/src/main/java/org/springframework/data/annotation/Indexed.java @@ -5,9 +5,15 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +/** + * Annotated fields and entities will be indexed and available for retrieval using an indexing API. + */ @Retention(RetentionPolicy.RUNTIME) @Target( value = {ElementType.FIELD,ElementType.TYPE}) public @interface Indexed { - String name() default ""; + /** + * Name of the index to use. + */ + String indexName() default ""; }