2021-01-07 11:34:56 +07:00

19 lines
732 B
Java

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.SasaranStrategis;
@Repository("SasaranStrategisDao")
public interface SasaranStrategisDao extends PagingAndSortingRepository<SasaranStrategis, Integer>,JpaSpecificationExecutor {
@Query("select count(p.id) as result from SasaranStrategis p where p.perspektifId = :id")
public Integer getCount(@Param("id") Integer perspektifId);
}