package siprp.database.cayenne.objects.auto;

import java.util.List;

import siprp.database.cayenne.objects.BaseObject;
import siprp.database.cayenne.objects.HsEmailEmpresa;
import siprp.database.cayenne.objects.HsEmailEstabelecimento;

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

    public static final String EMAIL_PROPERTY = "email";
    public static final String HS_EMAIL_EMPRESA_ARRAY_PROPERTY = "hsEmailEmpresaArray";
    public static final String HS_EMAIL_ESTABELECIMENTO_ARRAY_PROPERTY = "hsEmailEstabelecimentoArray";

    public static final String ID_PK_COLUMN = "id";

    public void setEmail(String email) {
        writeProperty("email", email);
    }
    public String getEmail() {
        return (String)readProperty("email");
    }

    public void addToHsEmailEmpresaArray(HsEmailEmpresa obj) {
        addToManyTarget("hsEmailEmpresaArray", obj, true);
    }
    public void removeFromHsEmailEmpresaArray(HsEmailEmpresa obj) {
        removeToManyTarget("hsEmailEmpresaArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsEmailEmpresa> getHsEmailEmpresaArray() {
        return (List<HsEmailEmpresa>)readProperty("hsEmailEmpresaArray");
    }


    public void addToHsEmailEstabelecimentoArray(HsEmailEstabelecimento obj) {
        addToManyTarget("hsEmailEstabelecimentoArray", obj, true);
    }
    public void removeFromHsEmailEstabelecimentoArray(HsEmailEstabelecimento obj) {
        removeToManyTarget("hsEmailEstabelecimentoArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<HsEmailEstabelecimento> getHsEmailEstabelecimentoArray() {
        return (List<HsEmailEstabelecimento>)readProperty("hsEmailEstabelecimentoArray");
    }


}
