package org.mte.numecoeval.referentiel.infrastructure.jpa.repository;

import io.swagger.v3.oas.annotations.tags.Tag;
import org.mte.numecoeval.referentiel.infrastructure.jpa.entity.TypeItemEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.List;

@RepositoryRestResource(path = "TypeItem", itemResourceRel = "TypesEquipements")
@Tag(name = "TypeItem - CRUD/Spring Data REST")
public interface TypeItemRepository extends JpaRepository<TypeItemEntity, String> {

    List<TypeItemEntity> findByCategorie(String categorie);

}
