Skip to content

Instantly share code, notes, and snippets.

View IgorHorta's full-sized avatar

Igor Horta Corrêa IgorHorta

View GitHub Profile
@strokine
strokine / EsId.java
Last active September 30, 2020 07:14
Utility to populate data from ElasticSearch results to POJO and from POJO to ElasticSearch Source for indexing
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface EsId {
}