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

@Repository("KesanPsikologis_DiagnosisDao")
public interface KesanPsikologis_DiagnosisDao extends PagingAndSortingRepository<KesanPsikologis_Diagnosis, String> {
	
	@Query("select model from KesanPsikologis_Diagnosis model where model.pengkajianAwalPsikologi.noRec=:noRec")
	public List<KesanPsikologis_Diagnosis> findByNoRec(@Param("noRec") String noRec);

}
