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.HsRelatorioRisco;

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

    public static final String DATA_PROPERTY = "data";
    public static final String DELETED_DATE_PROPERTY = "deletedDate";
    public static final String HS_RELATORIO_RISCO_ARRAY_PROPERTY = "hsRelatorioRiscoArray";

    public static final String ID_PK_COLUMN = "id";

    public void setData(Date data) {
        writeProperty("data", data);
    }
    public Date getData() {
        return (Date)readProperty("data");
    }

    public void setDeletedDate(Date deletedDate) {
        writeProperty("deletedDate", deletedDate);
    }
    public Date getDeletedDate() {
        return (Date)readProperty("deletedDate");
    }

    public void addToHsRelatorioRiscoArray(HsRelatorioRisco obj) {
        addToManyTarget("hsRelatorioRiscoArray", obj, true);
    }
    public void removeFromHsRelatorioRiscoArray(HsRelatorioRisco obj) {
        removeToManyTarget("hsRelatorioRiscoArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsRelatorioRisco> getHsRelatorioRiscoArray() {
        return (List<HsRelatorioRisco>)readProperty("hsRelatorioRiscoArray");
    }


}
