Merge branch 'rest-api-improvements' of https://github.com/wso2/carbon-device-mgt into rest-api-improvements

This commit is contained in:
prabathabey 2016-06-02 23:45:04 +05:30
commit 3c21583db6

View File

@ -283,8 +283,8 @@ public class GenericOperationDAOImpl implements OperationDAO {
ActivityStatus activityStatus = null;
while (rs.next()) {
activity = new Activity();
if (enrolmentId == 0) {
activity = new Activity();
activity.setType(Activity.Type.valueOf(rs.getString("OPERATION_TYPE")));
activity.setCreatedTimeStamp(new java.util.Date(rs.getLong(("CREATED_TIMESTAMP"))).toString());
activity.setCode(rs.getString("OPERATION_CODE"));