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.HsRelatorio;
import siprp.database.cayenne.objects.HsRelatorioPosto;

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

    public static final String DELETED_DATE_PROPERTY = "deletedDate";
    public static final String DESCRIPTION_PROPERTY = "description";
    public static final String HS_RELATORIO_POSTO_ARRAY_PROPERTY = "hsRelatorioPostoArray";
    public static final String TO_HS_RELATORIO_PROPERTY = "toHsRelatorio";

    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 addToHsRelatorioPostoArray(HsRelatorioPosto obj) {
        addToManyTarget("hsRelatorioPostoArray", obj, true);
    }
    public void removeFromHsRelatorioPostoArray(HsRelatorioPosto obj) {
        removeToManyTarget("hsRelatorioPostoArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsRelatorioPosto> getHsRelatorioPostoArray() {
        return (List<HsRelatorioPosto>)readProperty("hsRelatorioPostoArray");
    }


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

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


}
