Additive { @Generated(hash = 2093045715) public List<AdditiveName> getNames() { if (names == null) { final DaoSession daoSession = this.daoSession; if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } AdditiveNameDao targetDao = daoSession.getAdditiveNameDao(); List<AdditiveName> namesNew = targetDao._queryAdditive_Names(tag); synchronized (this) { if (names == null) { names = namesNew; } } } return names; } @Generated(hash = 575160496)  Additive(Long id, String tag, String overexposureRisk, String exposureMeanGreaterThanAdi,
            String exposureMeanGreaterThanNoael, String exposure95ThGreaterThanAdi,
            String exposure95ThGreaterThanNoael, String wikiDataId, Boolean isWikiDataIdPresent); @Keep  Additive( String tag, List<AdditiveName> names, String overexposureRisk, String wikiDataId); @Keep  Additive( String tag, List<AdditiveName> names, String overexposureRisk ); @Generated(hash = 55580656)  Additive(); Long getId(); void setId(Long id); String getTag(); void setTag(String tag); String getOverexposureRisk(); void setOverexposureRisk( String overexposureRisk ); @Generated(hash = 2093045715) List<AdditiveName> getNames(); @Generated(hash = 1832659617) synchronized void resetNames(); @Generated(hash = 128553479) void delete(); @Generated(hash = 1942392019) void refresh(); @Generated(hash = 713229351) void update(); String getWikiDataId(); void setWikiDataId(String wikiDataId); Boolean getIsWikiDataIdPresent(); void setIsWikiDataIdPresent(Boolean isWikiDataIdPresent); String getExposureMeanGreaterThanAdi(); void setExposureMeanGreaterThanAdi(String exposureMeanGreaterThanAdi); String getExposureMeanGreaterThanNoael(); void setExposureMeanGreaterThanNoael(String exposureMeanGreaterThanNoael); String getExposure95ThGreaterThanAdi(); void setExposure95ThGreaterThanAdi(String exposure95ThGreaterThanAdi); String getExposure95ThGreaterThanNoael(); void setExposure95ThGreaterThanNoael(String exposure95ThGreaterThanNoael); void setExposureEvalMap( String exposure95ThGreaterThanAdi, String exposure95ThGreaterThanNoael, String exposureMeanGreaterThanAdi, String exposureMeanGreaterThanNoael ); @Generated(hash = 1169248577) void __setDaoSession(DaoSession daoSession);  }
@Test public void getNamesWithNullNamesAndNullDaoSession_throwsDaoException() { assertThrows(DaoException.class, () -> mAdditive.getNames()); }