| Package | Description | 
|---|---|
| org.resthub.common.service | REST services | 
| org.resthub.web.controller | REST controllers | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | CrudServiceImpl<T,ID extends Serializable,R extends org.springframework.data.repository.PagingAndSortingRepository<T,ID>>CRUD service that uses a  PagingAndSortingRepositorySpring Data repository implementation
 You should extend it and inject your Repository bean by overridingCrudServiceImpl.setRepository(org.springframework.data.repository.PagingAndSortingRepository) | 
| Modifier and Type | Class and Description | 
|---|---|
| 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. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected S | ServiceBasedRestController. service | 
Copyright © 2009–2014. All rights reserved.