예제 #1
0
 @Override
 public List<DeviceDTO> getDevices() {
   List<Device> devices = deviceDao.loadAll();
   return convertDevices(devices);
 }
예제 #2
0
 public DeviceDTO getDevice(Long deviceId) {
   return convertDevice(deviceDao.get(deviceId));
 }