fixed
query
This commit is contained in:
parent
3d56684c15
commit
285edbee26
|
@ -1,5 +1,6 @@
|
|||
package com.loafle.overflow.module.noauthprobe.dao;
|
||||
|
||||
import com.loafle.overflow.module.domain.model.Domain;
|
||||
import com.loafle.overflow.module.noauthprobe.model.NoAuthProbe;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
|
@ -16,9 +17,9 @@ public interface NoAuthProbeDAO extends JpaRepository<NoAuthProbe, Long> {
|
|||
// NoAuthProbeDeprecate findByTempKey(NoAuthProbeDeprecate noAuthAgent);
|
||||
// List<NoAuthProbeDeprecate> findAllByNoAuth(NoAuthProbeDeprecate noAuthAgent);
|
||||
|
||||
@Query("SELECT n FROM NoAuthProbe n WHERE n.tempProbeKey = :tempProbeKey")
|
||||
NoAuthProbe findByTempKey(@Param("tempProbeKey")String tempProbeKey);
|
||||
// @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> findAllByDomainId(@Param("domainId")long domainId);
|
||||
// @Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :domainId")
|
||||
List<NoAuthProbe> findAllByDomain(Domain domain);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user