@Service
@Transactional
public class LabelService
extends java.lang.Object
| Constructor and Description |
|---|
LabelService(LabelRepository labelRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.lang.Long id)
Delete the label by id.
|
org.springframework.data.domain.Page<Label> |
findAll(org.springframework.data.domain.Pageable pageable)
Get all the labels.
|
Label |
findOne(java.lang.Long id)
Get one label by id.
|
Label |
save(Label label)
Save a label.
|
public LabelService(LabelRepository labelRepository)
public Label save(Label label)
label - the entity to save@Transactional(readOnly=true) public org.springframework.data.domain.Page<Label> findAll(org.springframework.data.domain.Pageable pageable)
pageable - the pagination information@Transactional(readOnly=true) public Label findOne(java.lang.Long id)
id - the id of the entitypublic void delete(java.lang.Long id)
id - the id of the entityCopyright © 2017 Osgiliath. All rights reserved.