コード例 #1
0
 @RequestMapping(value = "/findById", method = RequestMethod.POST)
 @Override
 public HttpEntity<ResponseBean> findById(@RequestBody FindByBean findByBean)
     throws SpartanPersistenceException, Exception {
   com.athena.framework.server.bean.ResponseBean responseBean = new ResponseBean();
   org.springframework.http.HttpStatus httpStatus = org.springframework.http.HttpStatus.OK;
   klickakartk.app.shared.contacts.CommunicationGroup lstcommunicationgroup =
       communicationGrouprepo.findById((String) findByBean.getFindKey());
   responseBean.add("success", true);
   responseBean.add("message", "Successfully retrived ");
   responseBean.add("data", lstcommunicationgroup);
   return new org.springframework.http.ResponseEntity<ResponseBean>(responseBean, httpStatus);
 }