/** To-one relationship, resolved on first access. */ public TestEntity getTestNotNull() { if (testNotNull__resolvedKey == null || !testNotNull__resolvedKey.equals(testIdNotNull)) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } TestEntityDao targetDao = daoSession.getTestEntityDao(); testNotNull = targetDao.load(testIdNotNull); testNotNull__resolvedKey = testIdNotNull; } return testNotNull; }