package siprp.database.cayenne.objects.auto;

import java.util.List;

import siprp.database.cayenne.objects.BaseObject;
import siprp.database.cayenne.objects.HsRelatorio;
import siprp.database.cayenne.objects.HsRelatorioMedida;

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

    public static final String DESCRIPTION_PROPERTY = "description";
    public static final String HS_RELATORIO_MEDIDA_ARRAY_PROPERTY = "hsRelatorioMedidaArray";
    public static final String TO_HS_RELATORIO_PROPERTY = "toHsRelatorio";

    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 addToHsRelatorioMedidaArray(HsRelatorioMedida obj) {
        addToManyTarget("hsRelatorioMedidaArray", obj, true);
    }
    public void removeFromHsRelatorioMedidaArray(HsRelatorioMedida obj) {
        removeToManyTarget("hsRelatorioMedidaArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsRelatorioMedida> getHsRelatorioMedidaArray() {
        return (List<HsRelatorioMedida>)readProperty("hsRelatorioMedidaArray");
    }


    public void setToHsRelatorio(HsRelatorio toHsRelatorio) {
        setToOneTarget("toHsRelatorio", toHsRelatorio, true);
    }

    public HsRelatorio getToHsRelatorio() {
        return (HsRelatorio)readProperty("toHsRelatorio");
    }


}
