package siprp.database.cayenne.objects.auto;

import java.util.List;

import siprp.database.cayenne.objects.BaseObject;
import siprp.database.cayenne.objects.Lembretes;

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

    public static final String ACTIVO_PROPERTY = "activo";
    public static final String CODIGO_PROPERTY = "codigo";
    public static final String DESCRICAO_PROPERTY = "descricao";
    public static final String ID_PROPERTY = "id";
    public static final String ORDEM_PROPERTY = "ordem";
    public static final String LEMBRETES_ARRAY_PROPERTY = "lembretesArray";

    public static final String ID_PK_COLUMN = "id";

    public void setActivo(String activo) {
        writeProperty("activo", activo);
    }
    public String getActivo() {
        return (String)readProperty("activo");
    }

    public void setCodigo(String codigo) {
        writeProperty("codigo", codigo);
    }
    public String getCodigo() {
        return (String)readProperty("codigo");
    }

    public void setDescricao(String descricao) {
        writeProperty("descricao", descricao);
    }
    public String getDescricao() {
        return (String)readProperty("descricao");
    }

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

    public void setOrdem(Integer ordem) {
        writeProperty("ordem", ordem);
    }
    public Integer getOrdem() {
        return (Integer)readProperty("ordem");
    }

    public void addToLembretesArray(Lembretes obj) {
        addToManyTarget("lembretesArray", obj, true);
    }
    public void removeFromLembretesArray(Lembretes obj) {
        removeToManyTarget("lembretesArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<Lembretes> getLembretesArray() {
        return (List<Lembretes>)readProperty("lembretesArray");
    }


}
