@RequestMapping(value = "/{cid}", consumes = "application/json", method = RequestMethod.DELETE)
 @Override
 public HttpEntity<ResponseBean> delete(@PathVariable("cid") String entity) throws Exception {
   questionrepo.delete(entity);
   AppAlarm appAlarm = Log.getAlarm("ABSUM128990200");
   ResponseBean responseBean = new ResponseBean(appAlarm);
   responseBean.add("message", String.format(appAlarm.getMessage(), "Question"));
   Log.out.println(
       appAlarm.getAlarmID(),
       runtimeLogInfoHelper.getRequestHeaderBean(),
       "QuestionServiceImpl",
       "delete",
       "Question");
   return new org.springframework.http.ResponseEntity<ResponseBean>(
       responseBean, HttpStatus.valueOf(appAlarm.getAlarmStatus()));
 }
 @RequestMapping(consumes = "application/json", method = RequestMethod.POST)
 @Override
 public HttpEntity<ResponseBean> save(@RequestBody Question entity) throws Exception {
   questionrepo.save(entity);
   AppAlarm appAlarm = Log.getAlarm("ABSUM122990200");
   ResponseBean responseBean = new ResponseBean(appAlarm);
   responseBean.add("message", String.format(appAlarm.getMessage(), "Question"));
   responseBean.add("data", entity);
   Log.out.println(
       appAlarm.getAlarmID(),
       runtimeLogInfoHelper.getRequestHeaderBean(),
       "QuestionServiceImpl",
       "save",
       "Question");
   return new org.springframework.http.ResponseEntity<ResponseBean>(
       responseBean, HttpStatus.valueOf(appAlarm.getAlarmStatus()));
 }
 @RequestMapping(value = "/findAll", consumes = "application/json", method = RequestMethod.GET)
 @Override
 public HttpEntity<ResponseBean> findAll() throws Exception {
   java.util.List<com.app.shared.appinsight.health.TestB> lsttestb = testBrepo.findAll();
   AppAlarm appAlarm = Log.getAlarm("AISHI124100200");
   ResponseBean responseBean = new ResponseBean(appAlarm);
   responseBean.add("message", String.format(appAlarm.getMessage(), "TestB"));
   responseBean.add("data", lsttestb);
   Log.out.println(
       appAlarm.getAlarmID(),
       runtimeLogInfoHelper.getRequestHeaderBean(),
       "TestBServiceImpl",
       "findAll",
       "TestB");
   return new org.springframework.http.ResponseEntity<ResponseBean>(
       responseBean, HttpStatus.valueOf(appAlarm.getAlarmStatus()));
 }
 @RequestMapping(consumes = "application/json", method = RequestMethod.PUT)
 @Override
 public HttpEntity<ResponseBean> update(@RequestBody TestB entity) throws Exception {
   testBrepo.update(entity);
   AppAlarm appAlarm = Log.getAlarm("AISHI123100200");
   ResponseBean responseBean = new ResponseBean(appAlarm);
   responseBean.add("message", String.format(appAlarm.getMessage(), "TestB"));
   responseBean.add("data", entity._getPrimarykey());
   Log.out.println(
       appAlarm.getAlarmID(),
       runtimeLogInfoHelper.getRequestHeaderBean(),
       "TestBServiceImpl",
       "update",
       "TestB");
   return new org.springframework.http.ResponseEntity<ResponseBean>(
       responseBean, HttpStatus.valueOf(appAlarm.getAlarmStatus()));
 }
 @RequestMapping(value = "/findAll", consumes = "application/json", method = RequestMethod.GET)
 @Override
 public HttpEntity<ResponseBean> findAll() throws Exception {
   java.util.List<com.app.shared.appbasicsetup.usermanagement.Question> lstquestion =
       questionrepo.findAll();
   AppAlarm appAlarm = Log.getAlarm("ABSUM124990200");
   ResponseBean responseBean = new ResponseBean(appAlarm);
   responseBean.add("message", String.format(appAlarm.getMessage(), "Question"));
   responseBean.add("data", lstquestion);
   Log.out.println(
       appAlarm.getAlarmID(),
       runtimeLogInfoHelper.getRequestHeaderBean(),
       "QuestionServiceImpl",
       "findAll",
       "Question");
   return new org.springframework.http.ResponseEntity<ResponseBean>(
       responseBean, HttpStatus.valueOf(appAlarm.getAlarmStatus()));
 }
 @RequestMapping(value = "/findById", method = RequestMethod.POST)
 @Override
 public HttpEntity<ResponseBean> findById(@RequestBody FindByBean findByBean) throws Exception {
   org.springframework.http.HttpStatus httpStatus = org.springframework.http.HttpStatus.OK;
   com.app.shared.appbasicsetup.usermanagement.Question lstquestion =
       questionrepo.findById((java.lang.String) findByBean.getFindKey());
   AppAlarm appAlarm = Log.getAlarm("ABSUM124990200");
   com.athena.server.pluggable.utils.bean.ResponseBean responseBean = new ResponseBean(appAlarm);
   responseBean.add("message", String.format(appAlarm.getMessage(), "Question"));
   responseBean.add("data", lstquestion);
   Log.out.println(
       "ABSUM124990200",
       runtimeLogInfoHelper.getRequestHeaderBean(),
       "QuestionServiceImpl",
       "save",
       "Question");
   return new org.springframework.http.ResponseEntity<ResponseBean>(
       responseBean, HttpStatus.valueOf(appAlarm.getAlarmStatus()));
 }
 @RequestMapping(
     consumes = "application/json",
     headers = {"isArray"},
     method = RequestMethod.POST)
 @Override
 public HttpEntity<ResponseBean> save(
     @RequestBody List<TestB> entity, @RequestHeader("isArray") boolean request) throws Exception {
   testBrepo.save(entity);
   AppAlarm appAlarm = Log.getAlarm("AISHI122100201");
   ResponseBean responseBean = new ResponseBean(appAlarm);
   responseBean.add("message", String.format(appAlarm.getMessage(), "TestB"));
   Log.out.println(
       appAlarm.getAlarmID(),
       runtimeLogInfoHelper.getRequestHeaderBean(),
       "TestBServiceImpl",
       "save",
       "TestB");
   return new org.springframework.http.ResponseEntity<ResponseBean>(
       responseBean, HttpStatus.valueOf(appAlarm.getAlarmStatus()));
 }
 @RequestMapping(
     consumes = "application/json",
     headers = {"isArray"},
     method = RequestMethod.PUT)
 @Override
 public HttpEntity<ResponseBean> update(
     @RequestBody List<Question> entity, @RequestHeader("isArray") boolean request)
     throws Exception {
   questionrepo.update(entity);
   AppAlarm appAlarm = Log.getAlarm("ABSUM323952200");
   ResponseBean responseBean = new ResponseBean(appAlarm);
   responseBean.add("message", String.format(appAlarm.getMessage(), "Question"));
   Log.out.println(
       appAlarm.getAlarmID(),
       runtimeLogInfoHelper.getRequestHeaderBean(),
       "QuestionServiceImpl",
       "update",
       "Question");
   return new org.springframework.http.ResponseEntity<ResponseBean>(
       responseBean, HttpStatus.valueOf(appAlarm.getAlarmStatus()));
 }