public List<Entity> loadEntities() { List<Entity> entities = entityDefinitionDao.loadEntities(); // Since we got all of them again, we might as well update the cache for (Entity entity : entities) { addToCache(entity); } return entities; }
public List<Entity> loadEntities() { List<Entity> entities = entityDefinitionDao.loadEntities(); // Since we got all of them again, we might as well update the cache for (Entity entity : entities) { addToCache(entity); } return entities; }