class FileTypeServiceImpl extends BaseTransactionalService implements FileTypeService {

    @Override
    @Transactional
    public ServiceResult<FileTypeResource> findOne(long id) {

        return find(fileTypeRepository.findById(id), notFoundError(FileType.class, id))
                .andOnSuccessReturn(fileType -> fileTypeMapper.mapToResource(fileType));
    }

}