return varDao;
}
public PartnerLinkDAO createPartnerLink(int modelId, String pLinkName, String myRole, String partnerRole) {
entering("ScopeDaoImpl.createPartnerLink");
HPartnerLink epr = new HPartnerLink();
epr.setModelId(modelId);
epr.setLinkName(pLinkName);
epr.setMyRole(myRole);
epr.setPartnerRole(partnerRole);
epr.setScope(_scope);
// _scope.addPartnerLink(epr);
try {
getSession().save(epr);
} catch (Exception e) {
super.logDao.error("Error while saving Partner Link : " + epr.toString());
throw new RuntimeException(e);
}
PartnerLinkDAOImpl eprDao = new PartnerLinkDAOImpl(_sm, epr);
return eprDao;
}