Skip to content

Commit

Permalink
Fix issue where repeatedly copied determinations led to problems saving
Browse files Browse the repository at this point in the history
  • Loading branch information
GenieTim committed Nov 4, 2019
1 parent 24e1be0 commit 0256581
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public class Determination implements java.io.Serializable, Cloneable {
private String typeStatus;
private String speciesNumber;
private String verbatimText;

private String natureOfId;
private String dateIdentified;
private String remarks;
Expand All @@ -41,7 +40,9 @@ public Determination(Specimen specimen) {
public Determination(Specimen specimen, String genus,
String specificEpithet, String subspecificEpithet,
String infraspecificEpithet, String infraspecificRank,
String authorship, String unNamedForm, String identifiedBy, String typeStatus, String speciesNumber) {
String authorship, String unNamedForm,
String identifiedBy, String typeStatus,
String speciesNumber, String natureOfId) {
this.specimen = specimen;
this.genus = genus;
this.specificEpithet = specificEpithet;
Expand All @@ -53,6 +54,7 @@ public Determination(Specimen specimen, String genus,
this.identifiedBy = identifiedBy;
this.typeStatus = typeStatus;
this.speciesNumber = speciesNumber;
this.natureOfId = natureOfId;
}

public Long getDeterminationId() {
Expand Down Expand Up @@ -215,9 +217,10 @@ public void setRemarks(String identificationRemarks) {

public Determination clone() {
Determination newDet = new Determination(
specimen, genus, specificEpithet, subspecificEpithet,
specimen, genus,
specificEpithet, subspecificEpithet,
infraspecificEpithet, infraspecificRank,
authorship, unNamedForm, identifiedBy, typeStatus, speciesNumber
authorship, unNamedForm, identifiedBy, typeStatus, speciesNumber, natureOfId
);
newDet.setVerbatimText(this.verbatimText);
newDet.setRemarks(this.remarks);
Expand Down

0 comments on commit 0256581

Please sign in to comment.