package siprp.database.cayenne.objects.auto;

import java.util.Date;
import java.util.List;

import siprp.database.cayenne.objects.BaseObject;
import siprp.database.cayenne.objects.HsRelatorioPostoMedida;
import siprp.database.cayenne.objects.HsRelatorioRisco;

/**
 * Class _HsRelatorioMedida was generated by Cayenne.
 * It is probably a good idea to avoid changing this class manually,
 * since it may be overwritten next time code is regenerated.
 * If you need to make any customizations, please use subclass.
 */
public abstract class _HsRelatorioMedida extends BaseObject {

    public static final String DELETED_DATE_PROPERTY = "deletedDate";
    public static final String DESCRIPTION_PROPERTY = "description";
    public static final String REQUESITOS_LEGAIS_PROPERTY = "requesitosLegais";
    public static final String HS_RELATORIO_POSTO_MEDIDA_ARRAY_PROPERTY = "hsRelatorioPostoMedidaArray";
    public static final String TO_HS_RELATORIO_RISCO_PROPERTY = "toHsRelatorioRisco";

    public static final String ID_PK_COLUMN = "id";

    public void setDeletedDate(Date deletedDate) {
        writeProperty("deletedDate", deletedDate);
    }
    public Date getDeletedDate() {
        return (Date)readProperty("deletedDate");
    }

    public void setDescription(String description) {
        writeProperty("description", description);
    }
    public String getDescription() {
        return (String)readProperty("description");
    }

    public void setRequesitosLegais(String requesitosLegais) {
        writeProperty("requesitosLegais", requesitosLegais);
    }
    public String getRequesitosLegais() {
        return (String)readProperty("requesitosLegais");
    }

    public void addToHsRelatorioPostoMedidaArray(HsRelatorioPostoMedida obj) {
        addToManyTarget("hsRelatorioPostoMedidaArray", obj, true);
    }
    public void removeFromHsRelatorioPostoMedidaArray(HsRelatorioPostoMedida obj) {
        removeToManyTarget("hsRelatorioPostoMedidaArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsRelatorioPostoMedida> getHsRelatorioPostoMedidaArray() {
        return (List<HsRelatorioPostoMedida>)readProperty("hsRelatorioPostoMedidaArray");
    }


    public void setToHsRelatorioRisco(HsRelatorioRisco toHsRelatorioRisco) {
        setToOneTarget("toHsRelatorioRisco", toHsRelatorioRisco, true);
    }

    public HsRelatorioRisco getToHsRelatorioRisco() {
        return (HsRelatorioRisco)readProperty("toHsRelatorioRisco");
    }


}
