/** To-one relationship, resolved on first access. */ public CompanyInfo getCompanyInfo() { if (companyInfo__resolvedKey == null || companyInfo__resolvedKey != companyId) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } CompanyInfoDao targetDao = daoSession.getCompanyInfoDao(); companyInfo = targetDao.load(companyId); companyInfo__resolvedKey = companyId; } return companyInfo; }