package com.realnet.scheduler.Repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.realnet.scheduler.Entity.JobEntity;

@Repository
public interface JobRepository extends JpaRepository<JobEntity, Long> {

	@Query(value = "select * from scheduled_jobs where lakeid=?1", nativeQuery = true)

	JobEntity getBylakeId(Integer lakeId);
}
