lib/templates/resource/controller/Controller.java.erb in spring-gen-0.1.1 vs lib/templates/resource/controller/Controller.java.erb in spring-gen-0.1.2
- old
+ new
@@ -65,10 +65,11 @@
Page<<%=@model_name%>> pageResult = this.<%=@model_name.downcase%>Repository.findAll(pageable);
return assembler.toResource(pageResult, <%=@model_name.downcase%>Assembler);
}
/**
+ * Creates a new <%=@model_name%>
* @param entity the <%=@model_name.downcase%> from the post-request. This <%=@model_name.downcase%> is deserialized by
* jackson.
* @return A respoonse containing a link to the new resource.
*/
@RequestMapping(method = RequestMethod.POST)
@@ -77,10 +78,10 @@
}
/**
* Returns one <%=@model_name%>.
*
- * @param id the id of the topic to return.
+ * @param id the id of the <%=@model_name.downcase%> to return.
* @return a response.
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
public ResponseEntity<<%=@model_name%>Resource> getOne(@PathVariable Long id) {
<%=@model_name%>Resource result