@Override public Inscripcion getById(Long id) throws Exception { try { setSession(); setTransaction(); Inscripcion inscripcionDevolver = new Inscripcion(); inscripcionDevolver = inscripcionDAO.findById(id); return inscripcionDevolver; } catch (Exception ex) { closeSession(); throw new Exception( "Ha ocurrido un error al buscar la INSCRIPCIÓN por su ID: " + ex.getMessage()); } }