public ActivityFact getActivityFact() { if (activityFact == null && dbObject.containsField("activityFact")) { activityFact = (ActivityFact) PongoFactory.getInstance().createPongo((DBObject) dbObject.get("activityFact")); activityFact.setContainer(this); } return activityFact; }
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; }