package ru.kayashov.bar.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import ru.kayashov.bar.model.entity.CategoryEntity;

import java.util.Optional;

public interface CategoryRepository extends JpaRepository<CategoryEntity, Integer> {

    Optional<CategoryEntity> findByNameIgnoreCase(String name);
}