class CategoryServiceImpl implements CategoryService {

    @Override
    public Category update(Long id, Category category) {
        log.info(LogMessage.IN_UPDATE, category);

        Category updatable = findById(id);

        updatable.setName(category.getName());
        updatable.setParentCategory(category.getParentCategory());
        updatable.setCategories(category.getCategories());
        updatable.setPlaces(category.getPlaces());

        return categoryRepo.save(category);
    }

}