added type target and name property to @Indexed

This commit is contained in:
Michael Hunger
2011-01-11 12:56:02 +01:00
parent bc876b7584
commit 7b70951b8d

View File

@@ -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 "";
}