package com.jasamedika.medifirst2000.dao;

import java.util.Date;

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

/**
 * Repository class for Ruangan
 * 
 * @author Generator
 */
@Repository("StatusKemandirianDao")
public interface StatusKemandirianDao extends PagingAndSortingRepository<StatusKemandirian, String> {
	
	@Query("select p from StatusKemandirian p where p.pasienDaftar.pasienDaftar.pasien.noCm=:noCm and p.kdProfile=:kdProfile and date(p.pasienDaftar.pasienDaftar.tglRegistrasi)=:tglRegistrasi ")
	StatusKemandirian finByNoCmAndTglRegistrasi(@Param("noCm") String noCm,@Param("kdProfile") short kdProfile,@Param("tglRegistrasi") Date tglRegistrasi);
	
}
