package org.innovateuk.ifs.finance.domain;

import javax.persistence.*;
import java.math.BigDecimal;
import java.time.LocalDate;

@Entity
public class GrowthTable extends FinancialYearAccounts {

    private LocalDate financialYearEnd;
    private BigDecimal annualTurnover;
    private BigDecimal annualProfits;
    private BigDecimal annualExport;
    private BigDecimal researchAndDevelopment;

    public GrowthTable() {
        super();
    }

    public GrowthTable(GrowthTable growthTable) {
        super(growthTable);
        this.financialYearEnd = growthTable.getFinancialYearEnd();
        this.annualTurnover = growthTable.getAnnualTurnover();
        this.annualProfits = growthTable.getAnnualExport();
        this.annualExport = growthTable.getAnnualExport();
        this.researchAndDevelopment = growthTable.getResearchAndDevelopment();
    }

    public LocalDate getFinancialYearEnd() {
        return financialYearEnd;
    }

    public void setFinancialYearEnd(LocalDate financialYearEnd) {
        this.financialYearEnd = financialYearEnd;
    }

    public BigDecimal getAnnualTurnover() {
        return annualTurnover;
    }

    public void setAnnualTurnover(BigDecimal annualTurnover) {
        this.annualTurnover = annualTurnover;
    }

    public BigDecimal getAnnualProfits() {
        return annualProfits;
    }

    public void setAnnualProfits(BigDecimal annualProfits) {
        this.annualProfits = annualProfits;
    }

    public BigDecimal getAnnualExport() {
        return annualExport;
    }

    public void setAnnualExport(BigDecimal annualExport) {
        this.annualExport = annualExport;
    }

    public BigDecimal getResearchAndDevelopment() {
        return researchAndDevelopment;
    }

    public void setResearchAndDevelopment(BigDecimal researchAndDevelopment) {
        this.researchAndDevelopment = researchAndDevelopment;
    }
}

@@ -692,38 +692,39 @@
 hTable.getAnnual
-Export
+Profits
 ();%0A        this

Fix incorrect mapping of growth table values