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

/**
 * Repository class for DataHasilPemeriksaanKerja
 * 
 * @author Askur
 */
@Repository("HasilPemeriksaanPraKerjaDao")
public interface HasilPemeriksaanPraKerjaDao extends PagingAndSortingRepository<HasilPemeriksaanPraKerja, String> {
	@Query("select model from HasilPemeriksaanPraKerja model where model.pegawai.id=:pegawaiId")
	public List<HasilPemeriksaanPraKerja> findByPegawaiId(@Param("pegawaiId") Integer pegawaiId);

}
