...
 
Commits (1)
......@@ -19,6 +19,7 @@ import javax.persistence.*;
import org.genesys.blocks.model.Copyable;
import org.gringlobal.component.elastic.ElasticTrigger;
import org.gringlobal.custom.validation.javax.CodeValueField;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
......@@ -46,6 +47,7 @@ public class AccessionInvName extends CooperatorOwnedModel implements ElasticTri
@Basic
@Column(name = "category_code", nullable = false, length = 20)
@CodeValueField("ACCESSION_NAME_TYPE")
private String categoryCode;
@Basic
......
......@@ -22,6 +22,8 @@ import java.util.List;
import javax.persistence.*;
import org.genesys.blocks.model.Copyable;
import org.gringlobal.custom.validation.javax.CodeValueField;
import org.gringlobal.model.community.CommunityCodeValues;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.JsonIgnore;
......@@ -145,10 +147,12 @@ public class AccessionSource extends CooperatorOwnedModel implements Copyable<Ac
@Basic
@Column(name = "source_type_code", nullable = false, length = 20)
@CodeValueField("ACCESSION_SOURCE_TYPE")
private String sourceTypeCode;
@Basic
@Column(name = "acquisition_source_code", length = 20)
@CodeValueField("ACCESSION_SOURCE_HABITAT_TYPE")
private String acquisitionSource;
@Basic
......@@ -158,6 +162,7 @@ public class AccessionSource extends CooperatorOwnedModel implements Copyable<Ac
@Basic
@Column(name = "collected_form_code", length = 20)
@CodeValueField(CommunityCodeValues.GERMPLASM_FORM)
private String collectedFormCode;
@Basic
......@@ -194,6 +199,7 @@ public class AccessionSource extends CooperatorOwnedModel implements Copyable<Ac
@Basic
@Column(name = "georeference_protocol_code", length = 20)
@CodeValueField("GEOREFERENCE_PROTOCOL")
private String georeferenceProtocolCode;
@Basic
......@@ -229,6 +235,7 @@ public class AccessionSource extends CooperatorOwnedModel implements Copyable<Ac
@Basic
@Column(name = "source_date_code", length = 20)
@CodeValueField(CommunityCodeValues.DATE_FORMAT)
private String sourceDateCode;
@Basic
......@@ -236,6 +243,7 @@ public class AccessionSource extends CooperatorOwnedModel implements Copyable<Ac
@Basic
@Column(name = "unit_quantity_collected_code", length = 20)
@CodeValueField(CommunityCodeValues.UNIT_OF_QUANTITY)
private String unitQuantityCollectedCode;
@JsonIgnore
......