added
list
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user