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.HsArea;
import siprp.database.cayenne.objects.HsPostoEstabelecimento;
import siprp.database.cayenne.objects.HsPostoMedida;
import siprp.database.cayenne.objects.HsPostoRisco;

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

    public static final String DELETED_DATE_PROPERTY = "deletedDate";
    public static final String DESCRIPTION_PROPERTY = "description";
    public static final String HS_POSTO_ESTABELECIMENTO_ARRAY_PROPERTY = "hsPostoEstabelecimentoArray";
    public static final String HS_POSTO_MEDIDA_ARRAY_PROPERTY = "hsPostoMedidaArray";
    public static final String HS_POSTO_RISCO_ARRAY_PROPERTY = "hsPostoRiscoArray";
    public static final String TO_HS_AREA_PROPERTY = "toHsArea";

    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 addToHsPostoEstabelecimentoArray(HsPostoEstabelecimento obj) {
        addToManyTarget("hsPostoEstabelecimentoArray", obj, true);
    }
    public void removeFromHsPostoEstabelecimentoArray(HsPostoEstabelecimento obj) {
        removeToManyTarget("hsPostoEstabelecimentoArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsPostoEstabelecimento> getHsPostoEstabelecimentoArray() {
        return (List<HsPostoEstabelecimento>)readProperty("hsPostoEstabelecimentoArray");
    }


    public void addToHsPostoMedidaArray(HsPostoMedida obj) {
        addToManyTarget("hsPostoMedidaArray", obj, true);
    }
    public void removeFromHsPostoMedidaArray(HsPostoMedida obj) {
        removeToManyTarget("hsPostoMedidaArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsPostoMedida> getHsPostoMedidaArray() {
        return (List<HsPostoMedida>)readProperty("hsPostoMedidaArray");
    }


    public void addToHsPostoRiscoArray(HsPostoRisco obj) {
        addToManyTarget("hsPostoRiscoArray", obj, true);
    }
    public void removeFromHsPostoRiscoArray(HsPostoRisco obj) {
        removeToManyTarget("hsPostoRiscoArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsPostoRisco> getHsPostoRiscoArray() {
        return (List<HsPostoRisco>)readProperty("hsPostoRiscoArray");
    }


    public void setToHsArea(HsArea toHsArea) {
        setToOneTarget("toHsArea", toHsArea, true);
    }

    public HsArea getToHsArea() {
        return (HsArea)readProperty("toHsArea");
    }


}
