package com.realnet.vpspack.Repository;


import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import org.springframework.stereotype.Repository; 
import java.util.*;

























































 

import com.realnet.vpspack.Entity.Emp_details;

@Repository
public interface  Emp_detailsRepository  extends  JpaRepository<Emp_details, Integer>  { 

@Query(value = "select * from emp_details where  created_by=?1", nativeQuery = true)
	List<Emp_details> findAll(Long creayedBy);

@Query(value = "select * from emp_details where  created_by=?1", nativeQuery = true)
	Page<Emp_details> findAll(Pageable page, Long creayedBy);
}