package com.thesis.centralserver.repositories;

import com.thesis.centralserver.entities.Device;
import com.thesis.centralserver.entities.DeviceMode;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface DeviceRepository extends JpaRepository<Device, Long> {

    List<Device> findByProcessorFreeGreaterThanAndDeviceMode(double processorFree, DeviceMode deviceMode);

}
