1 package de.spring.example.rest.controllers;
3 import javax.inject.Inject;
5 import org.resthub.web.controller.ServiceBasedRestController;
6 import org.springframework.web.bind.annotation.RequestMapping;
7 import org.springframework.web.bind.annotation.RestController;
9 import de.spring.example.persistence.domain.AdDescription;
10 import de.spring.example.services.AdDescriptionService;
13 @RequestMapping("/ad-descriptions/")
14 public class AdDescriptionController extends ServiceBasedRestController<AdDescription, Long, AdDescriptionService> {
18 public void setService(AdDescriptionService adDescriptionService) {
19 this.service = adDescriptionService;
22 // I do not have to do anything here because all I need is implemented by ServiceBasedRestController :)