diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/CommandOperationDAOImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/CommandOperationDAOImpl.java index 8b756f131e..3b73a8680f 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/CommandOperationDAOImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/impl/CommandOperationDAOImpl.java @@ -156,7 +156,7 @@ public class CommandOperationDAOImpl extends OperationDAOImpl { while (rs.next()) { - operationId = rs.getInt("ID"); + operationId = rs.getInt("OPERATION_ID"); operation = super.getOperation(operationId); operation.setEnabled(rs.getInt("ENABLED") == 0?false:true); operationList.add(operation);