com.github.kzwang.osem.annotations.IndexableId Maven / Gradle / Ivy
package com.github.kzwang.osem.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Id field of the object, it will not be include in the json unless has annotation {@link com.github.kzwang.osem.annotations.IndexableProperty}
*
* @see _id field
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
public @interface IndexableId {
/**
* "store" field in mapping
*/
boolean store() default false;
/**
* "index" field in mapping
*/
IndexEnum index() default IndexEnum.NA;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy