TaxonomySpeciesInfo.java

/*
 * Copyright 2026 Global Crop Diversity Trust
 * Licensed under the Apache License, Version 2.0
 * See LICENSE file in project root folder or http://www.apache.org/licenses/LICENSE-2.0
 */

package org.gringlobal.model.elastic;

import org.gringlobal.custom.elasticsearch.SearchField;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Getter
@Setter
public class TaxonomySpeciesInfo {

	private Long id;

	@SearchField
	@Field(type = FieldType.Text)
	private String name;
	@Field(type = FieldType.Text)
	private String nameAuthority;
	@Field(type = FieldType.Keyword)
	private String hybridCode;
	@Field(type = FieldType.Text)
	private String genusName;
	@Field(type = FieldType.Keyword)
	private String isSpecificHybrid;
	@Field(type = FieldType.Text)
	private String speciesName;
	@Field(type = FieldType.Text)
	private String speciesAuthority;
	@Field(type = FieldType.Keyword)
	private String isSubspecificHybrid;
	@Field(type = FieldType.Text)
	private String subspeciesName;
	@Field(type = FieldType.Text)
	private String varietyName;
	@Field(type = FieldType.Text)
	private String subvarietyName;
	@Field(type = FieldType.Text)
	private String formaName;

	@Field(type = FieldType.Keyword)
	private String formaRankType;
}