public abstract class AbstractController<T> extends Object
AbstractController()
T
get(long id)
List<T>
getAll()
void
notFound()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AbstractController()
@RequestMapping(value="/{id}") public T get(@PathVariable long id)
@RequestMapping public List<T> getAll()
@ExceptionHandler(value=org.hibernate.ObjectNotFoundException.class) @ResponseStatus(value=NOT_FOUND, reason="No such resource") public void notFound()
Copyright © 2014. All Rights Reserved.