package siprp.database.cayenne.objects.auto;

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

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

    public static final String TO_ESTABELECIMENTO_PROPERTY = "toEstabelecimento";
    public static final String TO_HS_EMAIL_PROPERTY = "toHsEmail";

    public static final String EMAIL_ID_PK_COLUMN = "email_id";
    public static final String ESTABELECIMENTO_ID_PK_COLUMN = "estabelecimento_id";

    public void setToEstabelecimento(Estabelecimentos toEstabelecimento) {
        setToOneTarget("toEstabelecimento", toEstabelecimento, true);
    }

    public Estabelecimentos getToEstabelecimento() {
        return (Estabelecimentos)readProperty("toEstabelecimento");
    }


    public void setToHsEmail(HsEmail toHsEmail) {
        setToOneTarget("toHsEmail", toHsEmail, true);
    }

    public HsEmail getToHsEmail() {
        return (HsEmail)readProperty("toHsEmail");
    }


}
