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.UnitCostDetail;

@Repository("UnitCostDetailDao")
public interface UnitCostDetailDao extends PagingAndSortingRepository<UnitCostDetail, Integer> {
	@Query("SELECT model FROM UnitCostDetail model WHERE model.unitCostId =:id")
	List<UnitCostDetail> findUnitCostDetailbyUnitCostid(@Param("id") Integer id);
}
