/** To-one relationship, resolved on first access. */ public Task getTask() { String __key = this.taskId; if (task__resolvedKey == null || task__resolvedKey != __key) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } TaskDao targetDao = daoSession.getTaskDao(); Task taskNew = targetDao.load(__key); synchronized (this) { task = taskNew; task__resolvedKey = __key; } } return task; }