package com.realnet.basic_calculator_app_20251004_122538-b.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.basic_calculator_app_20251004_122538-b.Entity.Calculator;

@Repository
public interface  CalculatorRepository  extends  JpaRepository<Calculator, Integer>  { 

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

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