package com.jasamedika.medifirst2000.dao;

import java.util.List;
import java.util.Map;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.jasamedika.medifirst2000.entities.ObjekPajak;

@Repository("ObjekPajakDao")
public interface ObjekPajakDao extends PagingAndSortingRepository<ObjekPajak, Integer> {

	@Query("select NEW Map(r.id as id,r.objekPajak as objekPajak) from ObjekPajak r ")
	public List<Map<String,Object>> findAllObjekPajak();

}
