package siprp.database.cayenne.objects.auto;

import siprp.database.cayenne.objects.BaseObject;
import siprp.database.cayenne.objects.Empresas;
import siprp.database.cayenne.objects.HsRisco;

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

    public static final String TO_EMPRESA_PROPERTY = "toEmpresa";
    public static final String TO_HS_RISCO_PROPERTY = "toHsRisco";

    public static final String EMPRESA_ID_PK_COLUMN = "empresa_id";
    public static final String RISCO_ID_PK_COLUMN = "risco_id";

    public void setToEmpresa(Empresas toEmpresa) {
        setToOneTarget("toEmpresa", toEmpresa, true);
    }

    public Empresas getToEmpresa() {
        return (Empresas)readProperty("toEmpresa");
    }


    public void setToHsRisco(HsRisco toHsRisco) {
        setToOneTarget("toHsRisco", toHsRisco, true);
    }

    public HsRisco getToHsRisco() {
        return (HsRisco)readProperty("toHsRisco");
    }


}
