Rev 22892 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.web.controller;import javax.servlet.http.HttpServletRequest;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.http.ResponseEntity;import org.springframework.stereotype.Controller;import org.springframework.transaction.annotation.Transactional;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RequestMethod;import com.spice.profitmandi.common.model.ProfitMandiConstants;import com.spice.profitmandi.common.web.util.ResponseSender;import com.spice.profitmandi.dao.repository.dtr.GadgetCopsInsuranceCalcRepository;@Controller@Transactional(rollbackFor=Throwable.class)public class InsuranceController {@AutowiredResponseSender<?> responseSender;private static final Logger LOGGER = LoggerFactory.getLogger(InsuranceController.class);@Autowiredprivate GadgetCopsInsuranceCalcRepository gadgetCopsInsuranceCalcRepository;@RequestMapping(value = ProfitMandiConstants.URL_INSURANCE_GADGET_COPS_MAPPING, method=RequestMethod.GET)public ResponseEntity<?> getById(HttpServletRequest request){LOGGER.info("requested url : "+request.getRequestURL().toString());return responseSender.ok(gadgetCopsInsuranceCalcRepository.selectAll());}}