37 lines
883 B
Java
37 lines
883 B
Java
package eu.eudat.elastic.data.nested;
|
|
|
|
import gr.cite.tools.elastic.ElasticConstants;
|
|
import org.springframework.data.annotation.Id;
|
|
import org.springframework.data.elasticsearch.annotations.*;
|
|
|
|
import java.util.UUID;
|
|
|
|
public class NestedReferenceElasticEntity {
|
|
@Id
|
|
@Field(value = NestedReferenceElasticEntity._id, type = FieldType.Keyword)
|
|
private UUID id;
|
|
public final static String _id = "id";
|
|
|
|
@MultiField(mainField = @Field(value = NestedReferenceElasticEntity._label, type = FieldType.Text), otherFields = {
|
|
@InnerField(suffix = ElasticConstants.SubFields.keyword, type = FieldType.Keyword)
|
|
})
|
|
private String label;
|
|
public final static String _label = "label";
|
|
|
|
public UUID getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(UUID id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
|
|
public void setLabel(String label) {
|
|
this.label = label;
|
|
}
|
|
}
|