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") // @Query("SELECT n FROM NoAuthProbe n WHERE n.tempProbeKey = :tempProbeKey")
NoAuthProbe findByTempProbeKey(String tempProbeKey); NoAuthProbe findByTempProbeKey(String tempProbeKey);
// @Query("select m from Member m WHERE m.email = :#{#m2.email}")
// @Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :domainId") @Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :#{#domain.id} and n.status = 'P'")
List<NoAuthProbe> findAllByDomain(Domain domain); List<NoAuthProbe> findAllByDomain(@Param("domain") Domain domain);
} }