package ru.kayashov.bar.repository;

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

import java.util.Optional;

public interface AlcoholicRepository extends JpaRepository<AlcoholicEntity, Integer> {

    Optional<AlcoholicEntity> findByName(String name);
}