@@ -0,0 +1,1291 @@
+#set( $symbol_pound = '#' )%0A#set( $symbol_dollar = '$' )%0A#set( $symbol_escape = '%5C' )%0Apackage $%7Bpackage%7D.rest;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.beans.factory.annotation.Qualifier;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0Aimport $%7Bpackage%7D.dao.ProjectApplicationDao;%0Aimport $%7Bpackage%7D.model.ProjectApplication;%0Aimport $%7Bpackage%7D.service.ProjectApplicationService;%0Aimport de.terrestris.shogun2.rest.ApplicationRestController;%0A%0A/**%0A * This is a demo controller that demonstrates how SHOGun2 REST controllers%0A * can be extended.%0A *%0A * @author Nils B%C3%BChner%0A *%0A */%0A@RestController%0A@RequestMapping(%22/projectapplications%22)%0Apublic class ProjectApplicationRestController%3CE extends ProjectApplication, D extends ProjectApplicationDao%3CE%3E, S extends ProjectApplicationService%3CE, D%3E%3E%0A%09%09extends ApplicationRestController%3CE, D, S%3E %7B%0A%0A%09/**%0A%09 * We have to use %7B@link Qualifier%7D to define the correct service here.%0A%09 * Otherwise, spring can not decide which service has to be autowired here%0A%09 * as there are multiple candidates.%0A%09 */%0A%09@Override%0A%09@Autowired%0A%09@Qualifier(%22projectApplicationService%22)%0A%09public void setService(S service) %7B%0A%09%09this.service = service;%0A%09%7D%0A%0A%7D%0A

Add REST demo controller to archetype