Skip to content
Snippets Groups Projects
Commit b9094a6f authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Method signature change

parent 0b9c9a62
No related branches found
No related tags found
No related merge requests found
......@@ -181,8 +181,8 @@ public class AppleFruitMothController extends HttpServlet {
ossc.setLastUpdated(SystemTime.getSystemTime());
ossc.setWarningStatus(formValidation.getFormField("warningStatus").getValueAsInteger());
ossc.setDegreeOfParasitation(formValidation.getFormField("degreeOfParasitation") != null ? BigDecimal.valueOf(formValidation.getFormField("degreeOfParasitation").getValueAsDouble()): null);
ossc.setThousandBerrySample(formValidation.getFormField("thousandBerrySample") != null ? BigDecimal.valueOf(formValidation.getFormField("thousandBerrySample").getValueAsDouble()): null);
ossc.setDegreeOfParasitation(formValidation.getFormField("degreeOfParasitation") != null ? formValidation.getFormField("degreeOfParasitation").getValueAsDouble(): null);
ossc.setThousandBerrySample(formValidation.getFormField("thousandBerrySample") != null ? formValidation.getFormField("thousandBerrySample").getValueAsDouble(): null);
ossc.setRemarks(formValidation.getFormField("remarks") != null ? formValidation.getFormField("remarks").getWebValue() : "");
observationSite.getObservationSiteSeasonCommonDataSet().add(ossc);
SessionControllerGetter.getAppleFruitMothBean().storeObservationSite(observationSite);
......
......@@ -51,9 +51,9 @@ public class ObservationSiteSeasonCommonData implements Serializable {
@EmbeddedId
protected ObservationSiteSeasonCommonDataPK observationSiteSeasonCommonDataPK;
@Column(name = "thousand_berry_sample")
private BigDecimal thousandBerrySample;
private Double thousandBerrySample;
@Column(name = "degree_of_parasitation")
private BigDecimal degreeOfParasitation;
private Double degreeOfParasitation;
@Column(name = "warning_status")
private Integer warningStatus;
@Column(name = "remarks")
......@@ -83,19 +83,19 @@ public class ObservationSiteSeasonCommonData implements Serializable {
this.observationSiteSeasonCommonDataPK = observationSiteSeasonCommonDataPK;
}
public BigDecimal getThousandBerrySample() {
public Double getThousandBerrySample() {
return thousandBerrySample;
}
public void setThousandBerrySample(BigDecimal thousandBerrySample) {
public void setThousandBerrySample(Double thousandBerrySample) {
this.thousandBerrySample = thousandBerrySample;
}
public BigDecimal getDegreeOfParasitation() {
public Double getDegreeOfParasitation() {
return degreeOfParasitation;
}
public void setDegreeOfParasitation(BigDecimal degreeOfParasitation) {
public void setDegreeOfParasitation(Double degreeOfParasitation) {
this.degreeOfParasitation = degreeOfParasitation;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment