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_summary;

@Repository
public interface  Order_summaryRepository  extends  JpaRepository<Order_summary, Integer>  { 

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

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