Package | Description |
---|---|
org.resthub.web.controller |
REST controllers
|
Modifier and Type | Class and Description |
---|---|
class |
RepositoryBasedRestController<T,ID extends Serializable,R extends org.springframework.data.repository.PagingAndSortingRepository>
Abstract REST controller using a repository implementation
You should extend this class when you want to use a 2 layers pattern : Repository and Controller.
|
class |
ServiceBasedRestController<T,ID extends Serializable,S extends CrudService>
Abstract REST controller using a service implementation
You should extend this class when you want to use a 3 layers pattern : Repository, Service and Controller
If you don't have a real service (also called business layer), consider using RepositoryBasedRestController
Default implementation uses "id" field (usually a Long) in order to identify resources in web request.
|
Copyright © 2009–2014. All rights reserved.