Class AcmeContactServiceImpl
- java.lang.Object
-
- de.trustable.ca3s.core.service.impl.AcmeContactServiceImpl
-
- All Implemented Interfaces:
AcmeContactService
@Service @Transactional public class AcmeContactServiceImpl extends Object implements AcmeContactService
Service Implementation for managingAcmeContact.
-
-
Constructor Summary
Constructors Constructor Description AcmeContactServiceImpl(AcmeContactRepository acmeContactRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(Long id)Delete the acmeContact by id.List<AcmeContact>findAll()Get all the acmeContacts.Optional<AcmeContact>findOne(Long id)Get one acmeContact by id.AcmeContactsave(AcmeContact acmeContact)Save a acmeContact.
-
-
-
Constructor Detail
-
AcmeContactServiceImpl
public AcmeContactServiceImpl(AcmeContactRepository acmeContactRepository)
-
-
Method Detail
-
save
public AcmeContact save(AcmeContact acmeContact)
Save a acmeContact.- Specified by:
savein interfaceAcmeContactService- Parameters:
acmeContact- the entity to save.- Returns:
- the persisted entity.
-
findAll
@Transactional(readOnly=true) public List<AcmeContact> findAll()
Get all the acmeContacts.- Specified by:
findAllin interfaceAcmeContactService- Returns:
- the list of entities.
-
findOne
@Transactional(readOnly=true) public Optional<AcmeContact> findOne(Long id)
Get one acmeContact by id.- Specified by:
findOnein interfaceAcmeContactService- Parameters:
id- the id of the entity.- Returns:
- the entity.
-
delete
public void delete(Long id)
Delete the acmeContact by id.- Specified by:
deletein interfaceAcmeContactService- Parameters:
id- the id of the entity.
-
-