コード例 #1
0
ファイル: _Category.java プロジェクト: warrencohn/marketplace
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }