mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Change get device by name query
This commit is contained in:
parent
21ea3a4428
commit
0de6ff09e7
@ -373,7 +373,7 @@ public class DeviceDAOImpl implements DeviceDAO {
|
|||||||
while (resultSet.next()) {
|
while (resultSet.next()) {
|
||||||
Device device = new Device();
|
Device device = new Device();
|
||||||
DeviceType deviceType = new DeviceType();
|
DeviceType deviceType = new DeviceType();
|
||||||
int id = resultSet.getInt(resultSet.getInt(1));
|
int id = resultSet.getInt(1);
|
||||||
deviceType.setId(id);
|
deviceType.setId(id);
|
||||||
deviceType.setName(resultSet.getString(2));
|
deviceType.setName(resultSet.getString(2));
|
||||||
device.setId(resultSet.getInt(3));
|
device.setId(resultSet.getInt(3));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user