/** To-one relationship, resolved on first access. */ public ProductStandard getProductStandard() { Long __key = this.standardId; if (productStandard__resolvedKey == null || !productStandard__resolvedKey.equals(__key)) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } ProductStandardDao targetDao = daoSession.getProductStandardDao(); ProductStandard productStandardNew = targetDao.load(__key); synchronized (this) { productStandard = productStandardNew; productStandard__resolvedKey = __key; } } return productStandard; }