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

/**
 * Repository class for Anamensis
 * 
 * @author Adik
 */
@Repository("HubunganPesertaAsuransiDao")
public interface HubunganPesertaAsuransiDao extends PagingAndSortingRepository<HubunganPesertaAsuransi, Integer> {
	@Query("select NEW Map(r.id as id,r.hubunganPeserta as hubunganPeserta) from HubunganPesertaAsuransi r ")
	public List<Map<String,Object>> findAllHubunganPesertaAsuransi();

}
