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

/**
 * Repository class for AbsensiPegawai
 * 
 * @author Generator
 */
@Repository("PlanningRekrutmenSeleksiDao")
public interface PlanningRekrutmenSeleksiDao extends PagingAndSortingRepository<PlanningRekrutmenSeleksi, String> {	
	@Query("select model from PlanningRekrutmenSeleksi model "
			+"left join model.noPlanning noPlanning "
			+"where noPlanning.noRec=:noRecstrukPlanning")
	List<PlanningRekrutmenSeleksi> getPlanningRekrutmenSeleksiByStrukPlanning(@Param("noRecstrukPlanning")String noRecstrukPlanning);
}
