@Transactional(timeout = 10) public Perfil findPerfilID(Integer idPerfil) { try { return iPerfilRepository.findOne(idPerfil); } catch (Exception e) { System.out.println("ERRO: " + e.getLocalizedMessage()); return null; } }
public Perfil findOnePerfil(Integer codigo) { return iPerfilRepository.findOne(codigo); }