package com.jasamedika.medifirst2000.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.jasamedika.medifirst2000.entities.SlipGajiDetail;

/**
 * @author salmanoe
 * @since Jan 20, 2023
 */
public interface SlipGajiDetailDao extends JpaRepository<SlipGajiDetail, String> {
	@Query("select sgd from SlipGajiDetail sgd where sgd.slipGaji.id = :id")
	List<SlipGajiDetail> findBySlipGaji(@Param("id") String id);
}
