package com.jasamedika.medifirst2000.dao;

import java.util.List;

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

@Repository("JenisLimbahB3MasukDao")
public interface JenisLimbahB3MasukDao extends PagingAndSortingRepository<JenisLimbahB3Masuk, Integer> {
	
	@Query("select count(p.id) from JenisLimbahB3Masuk p ")
	public Integer getCount();

	@Query("select p from JenisLimbahB3Masuk p where p.kategori=:kategori")
	public List<JenisLimbahB3Masuk> getJenisLimbahB3Masuk(@Param("kategori") String kategori);
	
	@Query("select p from JenisLimbahB3Masuk p")
	public List<JenisLimbahB3Masuk> getAllJenisLimbahB3Masuk();

}
