@Test @DatabaseSetup("classpath:dbunit/device_credentials.xml") public void findByCredentialsId() { String credentialsId = "ID_2"; DeviceCredentials deviceCredentials = deviceCredentialsDao.findByCredentialsId(SYSTEM_TENANT_ID, credentialsId); assertNotNull(deviceCredentials); assertEquals("958e3c74-3215-11e7-93ae-92361f002671", deviceCredentials.getId().getId().toString()); }
@Override public DeviceCredentials findByCredentialsId(TenantId tenantId, String credentialsId) { return DaoUtil.getData(deviceCredentialsRepository.findByCredentialsId(credentialsId)); }
JpaDeviceCredentialsDao extends JpaAbstractDao<DeviceCredentialsEntity, DeviceCredentials> implements DeviceCredentialsDao { @Override public DeviceCredentials findByCredentialsId(TenantId tenantId, String credentialsId) { return DaoUtil.getData(deviceCredentialsRepository.findByCredentialsId(credentialsId)); } }
JpaDeviceCredentialsDao extends JpaAbstractDao<DeviceCredentialsEntity, DeviceCredentials> implements DeviceCredentialsDao { @Override public DeviceCredentials findByCredentialsId(TenantId tenantId, String credentialsId) { return DaoUtil.getData(deviceCredentialsRepository.findByCredentialsId(credentialsId)); }  }
JpaDeviceCredentialsDao extends JpaAbstractDao<DeviceCredentialsEntity, DeviceCredentials> implements DeviceCredentialsDao { @Override public DeviceCredentials findByCredentialsId(TenantId tenantId, String credentialsId) { return DaoUtil.getData(deviceCredentialsRepository.findByCredentialsId(credentialsId)); }  @Override DeviceCredentials findByDeviceId(TenantId tenantId, UUID deviceId); @Override DeviceCredentials findByCredentialsId(TenantId tenantId, String credentialsId); }
JpaDeviceCredentialsDao extends JpaAbstractDao<DeviceCredentialsEntity, DeviceCredentials> implements DeviceCredentialsDao { @Override public DeviceCredentials findByCredentialsId(TenantId tenantId, String credentialsId) { return DaoUtil.getData(deviceCredentialsRepository.findByCredentialsId(credentialsId)); }  @Override DeviceCredentials findByDeviceId(TenantId tenantId, UUID deviceId); @Override DeviceCredentials findByCredentialsId(TenantId tenantId, String credentialsId);  }