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

@Repository("JenisDokumenDao")
public interface JenisDokumenDao extends PagingAndSortingRepository<JenisDokumen, Integer> {

	@Query("select model from JenisDokumen model where model.id=:id")
	JenisDokumen findByIdJenisDokumen(@Param("id") Integer id);

}
