package com.jasamedika.medifirst2000.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.jasamedika.medifirst2000.entities.Produk;
import com.jasamedika.medifirst2000.entities.Refacking;

@Repository("RefackingDao")
public interface RefackingDao extends PagingAndSortingRepository<Refacking, String> {	
	
	@Query("select model from Produk model")
	public List<Produk> findProduk();
}
