package com.jasamedika.medifirst2000.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
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.Disposisi;

@Repository("DisposisiDao")
public interface DisposisiDao extends PagingAndSortingRepository<Disposisi, String>, JpaSpecificationExecutor<Disposisi> {
	
	@Query("select count(p.id) from Disposisi p ")
	public Integer getCount();

	@Query("select p from Disposisi p where p.noRec=:noRec ")
	public Disposisi findById(@Param("noRec") String noRec);
}
