class AlertServiceImpl extends RootTransactionalService implements AlertService {

    @Override
    public ServiceResult<AlertResource> findById(Long id) {
        return find(alertRepository.findById(id), notFoundError(Alert.class, id)).andOnSuccessReturn(alertMapper::mapToResource);
    }

}