package com.nisum.mytime.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

import com.nisum.mytime.model.RoleMappingInfo;

public interface RoleMappingInfoRepo extends MongoRepository<RoleMappingInfo, String> {

	@Query("{'employeeId':?0},{'roleId':?1}")
	RoleMappingInfo findByEmployeeIdAndRoleId(String employeeId, String roleId);
}