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 org.springframework.stereotype.Repository; import com.jasamedika.medifirst2000.entities.NotifikasiMessageObjekModul; @Repository("NotifikasiModulMessageDao") public interface NotifikasiMessageObjekModulDao extends JpaRepository { List findByNotifMessagingId(Integer notifMessagingId); @Query("SELECT n FROM NotifikasiMessageObjekModul n WHERE n.notifMessagingId = :notifMessagingId AND n.ruanganId IN (:ruanganIds)") List findByNotifMessagingIdAndRuanganId(@Param("notifMessagingId")Integer notifMessagingId, @Param("ruanganIds") List ruanganIds); }