/** To-one relationship, resolved on first access. */ public Abilities getAbilities() { long __key = this.AbilityId; if (Abilities__resolvedKey == null || !Abilities__resolvedKey.equals(__key)) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } AbilitiesDao targetDao = daoSession.getAbilitiesDao(); Abilities AbilitiesNew = targetDao.load(__key); synchronized (this) { Abilities = AbilitiesNew; Abilities__resolvedKey = __key; } } return Abilities; }