package siprp.database.cayenne.objects.auto;

import java.util.List;

import siprp.database.cayenne.objects.BaseObject;
import siprp.database.cayenne.objects.HsRiscoMedida;
import siprp.database.cayenne.objects.HsRiscoTema;

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

    public static final String DESCRIPTION_PROPERTY = "description";
    public static final String HS_RISCO_MEDIDA_ARRAY_PROPERTY = "hsRiscoMedidaArray";
    public static final String TO_HS_RISCO_TEMA_PROPERTY = "toHsRiscoTema";

    public static final String ID_PK_COLUMN = "id";

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

    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");
    }


    public void setToHsRiscoTema(HsRiscoTema toHsRiscoTema) {
        setToOneTarget("toHsRiscoTema", toHsRiscoTema, true);
    }

    public HsRiscoTema getToHsRiscoTema() {
        return (HsRiscoTema)readProperty("toHsRiscoTema");
    }


}
