public SizeFact getSizeFact() { if (sizeFact == null && dbObject.containsField("sizeFact")) { sizeFact = (SizeFact) PongoFactory.getInstance().createPongo((DBObject) dbObject.get("sizeFact")); sizeFact.setContainer(this); } return sizeFact; }
public Project setSizeFact(SizeFact sizeFact) { if (this.sizeFact != sizeFact) { if (sizeFact == null) { dbObject.removeField("sizeFact"); } else { dbObject.put("sizeFact", sizeFact.getDbObject()); } this.sizeFact = sizeFact; notifyChanged(); } return this; }