public edu.umich.marketplace.eof.Advert createAdvertsRelationship() { EOClassDescription eoClassDesc = EOClassDescription.classDescriptionForEntityName("Advert"); EOEnterpriseObject eo = eoClassDesc.createInstanceWithEditingContext(editingContext(), null); editingContext().insertObject(eo); addObjectToBothSidesOfRelationshipWithKey(eo, "adverts"); return (edu.umich.marketplace.eof.Advert) eo; }
public er.sync.eo.ERSyncClientApp createApplicationsRelationship() { EOClassDescription eoClassDesc = EOClassDescription.classDescriptionForEntityName("ERSyncClientApp"); EOEnterpriseObject eo = eoClassDesc.createInstanceWithEditingContext(editingContext(), null); editingContext().insertObject(eo); addObjectToBothSidesOfRelationshipWithKey(eo, "applications"); return (er.sync.eo.ERSyncClientApp) eo; }
public er.rbac.eof.ERPrivilege createPrivilegesRelationship() { EOClassDescription eoClassDesc = EOClassDescription.classDescriptionForEntityName(er.rbac.eof.ERPrivilege.ENTITY_NAME); EOEnterpriseObject eo = eoClassDesc.createInstanceWithEditingContext(editingContext(), null); editingContext().insertObject(eo); addObjectToBothSidesOfRelationshipWithKey(eo, _ERRole.Keys.PRIVILEGES); return (er.rbac.eof.ERPrivilege) eo; }