list
This commit is contained in:
snoop 2017-06-23 14:46:03 +09:00
parent 63d78e1f1e
commit 3431b718b0

View File

@ -6,6 +6,8 @@ import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by root on 17. 5. 30.
*/
@ -16,4 +18,7 @@ public interface NoAuthProbeDAO extends JpaRepository<NoAuthProbe, Long> {
@Query("SELECT n FROM NoAuthProbe n WHERE n.tempProbeKey = :tempProbeKey")
NoAuthProbe findByTempKey(@Param("tempProbeKey")String tempProbeKey);
@Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :domainId")
List<NoAuthProbe> findAllByDomainId(@Param("domainId")long domainId);
}