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

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

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