示例#1
0
 /** To-one relationship, resolved on first access. */
 public ProductGroup getProductGroup() {
   String __key = this.groupId;
   if (productGroup__resolvedKey == null || productGroup__resolvedKey != __key) {
     if (daoSession == null) {
       throw new DaoException("Entity is detached from DAO context");
     }
     ProductGroupDao targetDao = daoSession.getProductGroupDao();
     ProductGroup productGroupNew = targetDao.load(__key);
     synchronized (this) {
       productGroup = productGroupNew;
       productGroup__resolvedKey = __key;
     }
   }
   return productGroup;
 }