findAllByDomain
This commit is contained in:
snoop 2017-06-23 20:09:21 +09:00
parent 6d46f4745e
commit 130170cfd5

View File

@ -19,7 +19,7 @@ public interface NoAuthProbeDAO extends JpaRepository<NoAuthProbe, Long> {
// @Query("SELECT n FROM NoAuthProbe n WHERE n.tempProbeKey = :tempProbeKey")
NoAuthProbe findByTempProbeKey(String tempProbeKey);
// @Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :domainId")
List<NoAuthProbe> findAllByDomain(Domain domain);
// @Query("select m from Member m WHERE m.email = :#{#m2.email}")
@Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :#{#domain.id} and n.status = 'P'")
List<NoAuthProbe> findAllByDomain(@Param("domain") Domain domain);
}