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.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.jasamedika.medifirst2000.entities.MetodePengadaanSubDetail;

@Repository("MetodePengadaanSubDetailDao")
public interface MetodePengadaanSubDetailDao extends PagingAndSortingRepository<MetodePengadaanSubDetail, Integer> {

	@Query("select model from MetodePengadaanSubDetail model where model.metodePengadaanDetailId=:id")
	List<MetodePengadaanSubDetail> findByParent(@Param("id") Integer id);

}
