package com.realnet.order_estimation.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.order_estimation.Entity.Order_estimation;

@Repository
public interface  Order_estimationRepository  extends  JpaRepository<Order_estimation, Integer>  { 

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

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