package de.effigenix.infrastructure.masterdata.persistence.repository;

import de.effigenix.infrastructure.masterdata.persistence.entity.ProductCategoryEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface ProductCategoryJpaRepository extends JpaRepository<ProductCategoryEntity, String> {

    boolean existsByName(String name);

    Optional<ProductCategoryEntity> findByName(String name);
}
