FIXED QUERY
This commit is contained in:
parent
1867f54c56
commit
4b2b87024f
|
@ -18,7 +18,7 @@ import java.util.List;
|
|||
public interface InfraDAO extends JpaRepository<Infra, Long> {
|
||||
public List<Infra> findAllByProbe(Probe probe);
|
||||
|
||||
@Query("SELECT i FROM INFRA i WHERE i.probe IN (:probeList)")
|
||||
@Query("SELECT i FROM INFRA i WHERE i.probe IN (:probeList) AND i.target != NULL")
|
||||
List<Infra> findAllByProbeList(@Param("probeList") List<Probe> probeList);
|
||||
|
||||
|
||||
|
|
|
@ -89,6 +89,7 @@ public class InfraServiceTest {
|
|||
|
||||
List<Infra> fl = this.infraService.readAllByDomain(domain);
|
||||
|
||||
System.out.println(fl.size());
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
String json = objectMapper.writeValueAsString(fl);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user