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.Empresas;
import siprp.database.cayenne.objects.HsPosto;

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

    public static final String DELETED_DATE_PROPERTY = "deletedDate";
    public static final String DESCRIPTION_PROPERTY = "description";
    public static final String EMPRESA_ID_PROPERTY = "empresaId";
    public static final String ID_PROPERTY = "id";
    public static final String ORDER_PROPERTY = "order";
    public static final String HS_POSTO_ARRAY_PROPERTY = "hsPostoArray";
    public static final String TO_EMPRESAS_PROPERTY = "toEmpresas";

    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 setEmpresaId(Integer empresaId) {
        writeProperty("empresaId", empresaId);
    }
    public Integer getEmpresaId() {
        return (Integer)readProperty("empresaId");
    }

    public void setId(Integer id) {
        writeProperty("id", id);
    }
    public Integer getId() {
        return (Integer)readProperty("id");
    }

    public void setOrder(Integer order) {
        writeProperty("order", order);
    }
    public Integer getOrder() {
        return (Integer)readProperty("order");
    }

    public void addToHsPostoArray(HsPosto obj) {
        addToManyTarget("hsPostoArray", obj, true);
    }
    public void removeFromHsPostoArray(HsPosto obj) {
        removeToManyTarget("hsPostoArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsPosto> getHsPostoArray() {
        return (List<HsPosto>)readProperty("hsPostoArray");
    }


    public void setToEmpresas(Empresas toEmpresas) {
        setToOneTarget("toEmpresas", toEmpresas, true);
    }

    public Empresas getToEmpresas() {
        return (Empresas)readProperty("toEmpresas");
    }


}
