@Override @Secured({"ROLE_USER"}) @Transactional(readOnly = true) public Computer find(long id) { LOGGER.debug("Find computer with id : {}", id); return computerDAO.findOne(id); }
@Override @Secured({"ROLE_USER"}) @Transactional(readOnly = true) public String getComputerDetails(Computer c) { LOGGER.debug("Getting details of the computer : {}", c); Computer computer = computerDAO.findOne(c.getId()); return computer.toString(); }