Beispiel #1
0
 public ActivityFact getActivityFact() {
   if (activityFact == null && dbObject.containsField("activityFact")) {
     activityFact =
         (ActivityFact)
             PongoFactory.getInstance().createPongo((DBObject) dbObject.get("activityFact"));
     activityFact.setContainer(this);
   }
   return activityFact;
 }
Beispiel #2
0
 public Project setActivityFact(ActivityFact activityFact) {
   if (this.activityFact != activityFact) {
     if (activityFact == null) {
       dbObject.removeField("activityFact");
     } else {
       dbObject.put("activityFact", activityFact.getDbObject());
     }
     this.activityFact = activityFact;
     notifyChanged();
   }
   return this;
 }