package com.realnet.test.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.test.Entity.Test1234;

@Repository
public interface  Test1234Repository  extends  JpaRepository<Test1234, Integer>  { 

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

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