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

/**
 * Class _HsMedida 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 _HsMedida 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_POSTO_MEDIDA_ARRAY_PROPERTY = "hsPostoMedidaArray";
    public static final String HS_RISCO_MEDIDA_ARRAY_PROPERTY = "hsRiscoMedidaArray";

    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 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 addToHsRiscoMedidaArray(HsRiscoMedida obj) {
        addToManyTarget("hsRiscoMedidaArray", obj, true);
    }
    public void removeFromHsRiscoMedidaArray(HsRiscoMedida obj) {
        removeToManyTarget("hsRiscoMedidaArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsRiscoMedida> getHsRiscoMedidaArray() {
        return (List<HsRiscoMedida>)readProperty("hsRiscoMedidaArray");
    }


}
