package com.realnet.dlf.Repository;

import java.util.List;

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 com.realnet.dlf.Entity.Dlf_header;

@Repository
public interface Dlf_headerRepository extends JpaRepository<Dlf_header, Integer> {

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

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