package com.example.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.example.domain.Shoes;

//靴データ取得用
//statusによって出し分け
public interface ShoesRepository extends JpaRepository<Shoes, Integer>{
	@Query(value = "SELECT * FROM shoes WHERE product_status = ?1 ORDER BY id DESC", nativeQuery = true)
	public List <Shoes> findAllByStatus(Integer status);
}
