mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
25 lines
479 B
Java
25 lines
479 B
Java
package com.avaje.ebean.annotation;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* An annotation for declaring an index on a single column.
|
|
*
|
|
* @author rvbiljouw
|
|
*/
|
|
@Target({ElementType.FIELD})
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface Index {
|
|
|
|
/**
|
|
* Name of the index
|
|
*
|
|
* @return index name
|
|
*/
|
|
String value() default "";
|
|
|
|
}
|