eu.unicore.persist.annotations.ID Maven / Gradle / Ivy
package eu.unicore.persist.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* used to mark a field or accessor method of type {@link String}
* that is to be used as unique ID in the database
*
* @author schuller
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD,ElementType.METHOD})
public @interface ID {
}