From 7b70951b8d60f39fb0848071a4f9055c2c058263 Mon Sep 17 00:00:00 2001 From: Michael Hunger Date: Tue, 11 Jan 2011 12:56:02 +0100 Subject: [PATCH] added type target and name property to @Indexed --- .../main/java/org/springframework/data/annotation/Indexed.java | 3 ++- 1 file changed, 2 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 2d020d4b6..0fba4601a 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 @@ -6,7 +6,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.FIELD) +@Target( value = {ElementType.FIELD,ElementType.TYPE}) public @interface Indexed { + String name() default ""; }