示例#1
0
 public SizeFact getSizeFact() {
   if (sizeFact == null && dbObject.containsField("sizeFact")) {
     sizeFact =
         (SizeFact) PongoFactory.getInstance().createPongo((DBObject) dbObject.get("sizeFact"));
     sizeFact.setContainer(this);
   }
   return sizeFact;
 }
示例#2
0
 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;
 }