public enum ElasticsearchProjection implements Projection {
THIS("__Elasticsearch_This"),
ID("__Elasticsearch_Id"),
SCORE("__Elasticsearch_Score"),
OBJECT_CLASS("__Elasticsearch_HibernateClass"),
SPATIAL_DISTANCE("__Elasticsearch_SpatialDistance"),
SOURCE("__Elasticsearch_Source");
static {
for ( Projection projection : values() ) {
ProjectionCompatibilityLayer.register( projection );
}
}
private String key;
private ElasticsearchProjection(String key) {
this.key = key;
}
public String key() {
return key;
}
}