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.HsRelatorioArea;
import siprp.database.cayenne.objects.HsRelatorioPostoMedida;
import siprp.database.cayenne.objects.HsRelatorioPostoRisco;

/**
 * Class _HsRelatorioPosto 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 _HsRelatorioPosto extends BaseObject {

    public static final String DELETED_DATE_PROPERTY = "deletedDate";
    public static final String DESCRIPTION_PROPERTY = "description";
    public static final String HS_RELATORIO_POSTO_MEDIDA_ARRAY_PROPERTY = "hsRelatorioPostoMedidaArray";
    public static final String HS_RELATORIO_POSTO_RISCO_ARRAY_PROPERTY = "hsRelatorioPostoRiscoArray";
    public static final String TO_HS_RELATORIO_AREA_PROPERTY = "toHsRelatorioArea";

    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 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 addToHsRelatorioPostoRiscoArray(HsRelatorioPostoRisco obj) {
        addToManyTarget("hsRelatorioPostoRiscoArray", obj, true);
    }
    public void removeFromHsRelatorioPostoRiscoArray(HsRelatorioPostoRisco obj) {
        removeToManyTarget("hsRelatorioPostoRiscoArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsRelatorioPostoRisco> getHsRelatorioPostoRiscoArray() {
        return (List<HsRelatorioPostoRisco>)readProperty("hsRelatorioPostoRiscoArray");
    }


    public void setToHsRelatorioArea(HsRelatorioArea toHsRelatorioArea) {
        setToOneTarget("toHsRelatorioArea", toHsRelatorioArea, true);
    }

    public HsRelatorioArea getToHsRelatorioArea() {
        return (HsRelatorioArea)readProperty("toHsRelatorioArea");
    }


}
