package com.itsol.quantrivanphong.access.homepage.repository;

import com.itsol.quantrivanphong.model.Catalogi;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CatalogiRepository extends JpaRepository<Catalogi, Integer> {
    @Query("SELECT u from Catalogi u")
    List<Catalogi> findAllCatalogi();

//    @Query("SELECT u FROM Catalogi u where u.id=:id")
//    Catalogi findCatalogiById(int id);
}
