package siprp.database.cayenne.objects.auto;

import java.util.List;

import siprp.database.cayenne.objects.BaseObject;
import siprp.database.cayenne.objects.HsLegislacaoCategoria;
import siprp.database.cayenne.objects.HsLegislacaoEmpresa;
import siprp.database.cayenne.objects.HsLegislacaoEstabelecimento;

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

    public static final String DESCRIPTION_PROPERTY = "description";
    public static final String HS_LEGISLACAO_EMPRESA_ARRAY_PROPERTY = "hsLegislacaoEmpresaArray";
    public static final String HS_LEGISLACAO_ESTABELECIMENTO_ARRAY_PROPERTY = "hsLegislacaoEstabelecimentoArray";
    public static final String TO_HS_LEGISLACAO_CATEGORIA_PROPERTY = "toHsLegislacaoCategoria";

    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 addToHsLegislacaoEmpresaArray(HsLegislacaoEmpresa obj) {
        addToManyTarget("hsLegislacaoEmpresaArray", obj, true);
    }
    public void removeFromHsLegislacaoEmpresaArray(HsLegislacaoEmpresa obj) {
        removeToManyTarget("hsLegislacaoEmpresaArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsLegislacaoEmpresa> getHsLegislacaoEmpresaArray() {
        return (List<HsLegislacaoEmpresa>)readProperty("hsLegislacaoEmpresaArray");
    }


    public void addToHsLegislacaoEstabelecimentoArray(HsLegislacaoEstabelecimento obj) {
        addToManyTarget("hsLegislacaoEstabelecimentoArray", obj, true);
    }
    public void removeFromHsLegislacaoEstabelecimentoArray(HsLegislacaoEstabelecimento obj) {
        removeToManyTarget("hsLegislacaoEstabelecimentoArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsLegislacaoEstabelecimento> getHsLegislacaoEstabelecimentoArray() {
        return (List<HsLegislacaoEstabelecimento>)readProperty("hsLegislacaoEstabelecimentoArray");
    }


    public void setToHsLegislacaoCategoria(HsLegislacaoCategoria toHsLegislacaoCategoria) {
        setToOneTarget("toHsLegislacaoCategoria", toHsLegislacaoCategoria, true);
    }

    public HsLegislacaoCategoria getToHsLegislacaoCategoria() {
        return (HsLegislacaoCategoria)readProperty("toHsLegislacaoCategoria");
    }


}
