fixed dao query

This commit is contained in:
snoop 2017-08-22 21:25:37 +09:00
parent b08e3e3b2a
commit 1f053db7eb

View File

@ -1,7 +1,6 @@
package com.loafle.overflow.module.sensor.dao;
import com.loafle.overflow.module.probe.model.Probe;
import com.loafle.overflow.module.sensor.model.Sensor;
import com.loafle.overflow.module.target.model.Target;
import org.springframework.data.jpa.repository.JpaRepository;
@ -21,4 +20,5 @@ public interface SensorDAO extends JpaRepository<Sensor, Long> {
@Query("SELECT s from Sensor s WHERE s.target in (:targetList)")
List<Sensor> findAllByTarget(@Param("targetList") List<Target> targetList);
// List<Sensor> findAllByTargetList(List<Target> targets);
}