renamed Index.name to Index.indexName to avoid confusion with potential name property

This commit is contained in:
Michael Hunger
2011-01-12 10:51:03 +01:00
parent 7b70951b8d
commit 2f11dd80fd

View File

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