Example #1
0
 /** To-one relationship, resolved on first access. */
 public TestEntity getTestWithoutProperty() {
   if (testWithoutProperty != null || !testWithoutProperty__refreshed) {
     if (daoSession == null) {
       throw new DaoException("Entity is detached from DAO context");
     }
     TestEntityDao targetDao = daoSession.getTestEntityDao();
     targetDao.refresh(testWithoutProperty);
     testWithoutProperty__refreshed = true;
   }
   return testWithoutProperty;
 }
Example #2
0
 /** 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;
 }