package ru.kayashov.bar.repository;

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

import java.util.List;
import java.util.Optional;

public interface BarEntityRepository extends JpaRepository<BarEntity, Long> {
    Optional<BarEntity> findByActiveTrue();
}