private List<Resource> reloadResources( Collection<? extends Resource> resources) { List<Resource> result = new ArrayList<Resource>(); for (Resource each: resources) { result.add(resourceDAO.findExistingEntity(each.getId())); } return result; }
@Override @Transactional(readOnly = true) public List<Resource> getAll() { return resourceDAO.findAll(); }