package com.jasamedika.medifirst2000.dao;

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

@Repository("ProgramDanPerencanaanPenangananDao")
public interface ProgramDanPerencanaanPenangananDao extends PagingAndSortingRepository<ProgramDanPerencanaanPenanganan, String> {
	
	@Query("select model from ProgramDanPerencanaanPenanganan model where model.pasien.noCm=:noCm")
	public ProgramDanPerencanaanPenanganan findByNoCm(@Param("noCm") String noCm);


}
