package siprp.database.cayenne.objects.auto;

import java.util.List;

import siprp.database.cayenne.objects.BaseObject;
import siprp.database.cayenne.objects.Estabelecimentos;
import siprp.database.cayenne.objects.Exames;

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

    public static final String ID_PROPERTY = "id";
    public static final String INACTIVO_PROPERTY = "inactivo";
    public static final String NOME_PROPERTY = "nome";
    public static final String NUMERO_CEDULA_PROPERTY = "numeroCedula";
    public static final String ESTABELECIMENTOS_ARRAY_PROPERTY = "estabelecimentosArray";
    public static final String EXAMES_ARRAY_PROPERTY = "examesArray";

    public static final String ID_PK_COLUMN = "id";

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

    public void setInactivo(String inactivo) {
        writeProperty("inactivo", inactivo);
    }
    public String getInactivo() {
        return (String)readProperty("inactivo");
    }

    public void setNome(String nome) {
        writeProperty("nome", nome);
    }
    public String getNome() {
        return (String)readProperty("nome");
    }

    public void setNumeroCedula(String numeroCedula) {
        writeProperty("numeroCedula", numeroCedula);
    }
    public String getNumeroCedula() {
        return (String)readProperty("numeroCedula");
    }

    public void addToEstabelecimentosArray(Estabelecimentos obj) {
        addToManyTarget("estabelecimentosArray", obj, true);
    }
    public void removeFromEstabelecimentosArray(Estabelecimentos obj) {
        removeToManyTarget("estabelecimentosArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<Estabelecimentos> getEstabelecimentosArray() {
        return (List<Estabelecimentos>)readProperty("estabelecimentosArray");
    }


    public void addToExamesArray(Exames obj) {
        addToManyTarget("examesArray", obj, true);
    }
    public void removeFromExamesArray(Exames obj) {
        removeToManyTarget("examesArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<Exames> getExamesArray() {
        return (List<Exames>)readProperty("examesArray");
    }


}
