@RequestMapping(value="/table/favourite",method=RequestMethod.POST) public String addOrRemoveFavourite(HttpServletRequest request,String fqdn){
  tableEntityService.addOrRemoveFavourite(fqdn);
  return "redirect:" + request.getHeader("Referer");
}

@ RequestMapping ( value = "/table/favourite" , method = RequestMethod . POST ) public String addOrRemoveFavourite ( HttpServletRequest request , String fqdn ) { tableEntityService . addOrRemoveFavourite ( fqdn ) ; return "redirect:" + request . getHeader ( "Referer" ) ; }
adds or removes a table from users favourites
