Homeautomation/src/main/java/de/ph87/homeautomation/device/DeviceStateSceneRepository.java
Patrick Haßel 0b146b5972 #3 FIX Property- & Device updates
+ Devices in Property::usages
+ code clean
2022-10-26 21:04:18 +02:00

14 lines
436 B
Java

package de.ph87.homeautomation.device;
import de.ph87.homeautomation.device.devices.DeviceStateScene;
import de.ph87.homeautomation.property.Property;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface DeviceStateSceneRepository extends JpaRepository<DeviceStateScene, Long> {
List<DeviceStateScene> findDistinctByStatePropertyOrSceneProperty(Property state, Property scene);
}