{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls/comments/38523938","id":38523938,"diff_hunk":"@@ -83,18 +83,16 @@ public int updateDevice(int typeId, Device device, int tenantId) throws DeviceMa\n             stmt.setString(3, device.getDeviceIdentifier());\n             stmt.setInt(4, typeId);\n             stmt.setInt(5, tenantId);\n-            stmt.executeUpdate();\n-\n-            rs = stmt.getGeneratedKeys();\n-            if (rs.next()) {\n-                deviceId = rs.getInt(1);\n+            rows = stmt.executeUpdate();\n+            if (rows>0) {","path":"components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/DeviceDAOImpl.java","position":null,"original_position":25,"commit_id":"7642112a9fdae0affe571b8a99ed1d16c1f901c2","original_commit_id":"9d5f2af7e9461bb859b87e58fb1af4e330cebc9b","user":{"login":"hasuniea","id":12996810,"avatar_url":"https://avatars.githubusercontent.com/u/12996810?v=3","gravatar_id":"","url":"https://api.github.com/users/hasuniea","html_url":"https://github.com/hasuniea","followers_url":"https://api.github.com/users/hasuniea/followers","following_url":"https://api.github.com/users/hasuniea/following{/other_user}","gists_url":"https://api.github.com/users/hasuniea/gists{/gist_id}","starred_url":"https://api.github.com/users/hasuniea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasuniea/subscriptions","organizations_url":"https://api.github.com/users/hasuniea/orgs","repos_url":"https://api.github.com/users/hasuniea/repos","events_url":"https://api.github.com/users/hasuniea/events{/privacy}","received_events_url":"https://api.github.com/users/hasuniea/received_events","type":"User","site_admin":false},"body":"fixed code formatting issue","created_at":"2015-09-02T12:03:44Z","updated_at":"2015-09-02T12:03:44Z","html_url":"https://github.com/wso2/carbon-device-mgt/pull/28#discussion_r38523938","pull_request_url":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls/comments/38523938"},"html":{"href":"https://github.com/wso2/carbon-device-mgt/pull/28#discussion_r38523938"},"pull_request":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls/28","id":43376975,"html_url":"https://github.com/wso2/carbon-device-mgt/pull/28","diff_url":"https://github.com/wso2/carbon-device-mgt/pull/28.diff","patch_url":"https://github.com/wso2/carbon-device-mgt/pull/28.patch","issue_url":"https://api.github.com/repos/wso2/carbon-device-mgt/issues/28","number":28,"state":"open","locked":false,"title":"fixed issue in modify enrollment","user":{"login":"hasuniea","id":12996810,"avatar_url":"https://avatars.githubusercontent.com/u/12996810?v=3","gravatar_id":"","url":"https://api.github.com/users/hasuniea","html_url":"https://github.com/hasuniea","followers_url":"https://api.github.com/users/hasuniea/followers","following_url":"https://api.github.com/users/hasuniea/following{/other_user}","gists_url":"https://api.github.com/users/hasuniea/gists{/gist_id}","starred_url":"https://api.github.com/users/hasuniea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasuniea/subscriptions","organizations_url":"https://api.github.com/users/hasuniea/orgs","repos_url":"https://api.github.com/users/hasuniea/repos","events_url":"https://api.github.com/users/hasuniea/events{/privacy}","received_events_url":"https://api.github.com/users/hasuniea/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-26T08:38:06Z","updated_at":"2015-09-02T12:03:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe64b627b9179cc44cc1453dbddae1401991ce7b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls/28/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls/28/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-device-mgt/issues/28/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-device-mgt/statuses/7642112a9fdae0affe571b8a99ed1d16c1f901c2","head":{"label":"hasuniea:master","ref":"master","sha":"7642112a9fdae0affe571b8a99ed1d16c1f901c2","user":{"login":"hasuniea","id":12996810,"avatar_url":"https://avatars.githubusercontent.com/u/12996810?v=3","gravatar_id":"","url":"https://api.github.com/users/hasuniea","html_url":"https://github.com/hasuniea","followers_url":"https://api.github.com/users/hasuniea/followers","following_url":"https://api.github.com/users/hasuniea/following{/other_user}","gists_url":"https://api.github.com/users/hasuniea/gists{/gist_id}","starred_url":"https://api.github.com/users/hasuniea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasuniea/subscriptions","organizations_url":"https://api.github.com/users/hasuniea/orgs","repos_url":"https://api.github.com/users/hasuniea/repos","events_url":"https://api.github.com/users/hasuniea/events{/privacy}","received_events_url":"https://api.github.com/users/hasuniea/received_events","type":"User","site_admin":false},"repo":{"id":41124322,"name":"carbon-device-mgt","full_name":"hasuniea/carbon-device-mgt","owner":{"login":"hasuniea","id":12996810,"avatar_url":"https://avatars.githubusercontent.com/u/12996810?v=3","gravatar_id":"","url":"https://api.github.com/users/hasuniea","html_url":"https://github.com/hasuniea","followers_url":"https://api.github.com/users/hasuniea/followers","following_url":"https://api.github.com/users/hasuniea/following{/other_user}","gists_url":"https://api.github.com/users/hasuniea/gists{/gist_id}","starred_url":"https://api.github.com/users/hasuniea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasuniea/subscriptions","organizations_url":"https://api.github.com/users/hasuniea/orgs","repos_url":"https://api.github.com/users/hasuniea/repos","events_url":"https://api.github.com/users/hasuniea/events{/privacy}","received_events_url":"https://api.github.com/users/hasuniea/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hasuniea/carbon-device-mgt","description":"","fork":true,"url":"https://api.github.com/repos/hasuniea/carbon-device-mgt","forks_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/forks","keys_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/teams","hooks_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/hooks","issue_events_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/issues/events{/number}","events_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/events","assignees_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/assignees{/user}","branches_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/branches{/branch}","tags_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/tags","blobs_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/git/refs{/sha}","trees_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/statuses/{sha}","languages_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/languages","stargazers_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/stargazers","contributors_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/contributors","subscribers_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/subscribers","subscription_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/subscription","commits_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/commits{/sha}","git_commits_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/git/commits{/sha}","comments_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/comments{/number}","issue_comment_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/issues/comments{/number}","contents_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/contents/{+path}","compare_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/merges","archive_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/downloads","issues_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/issues{/number}","pulls_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/pulls{/number}","milestones_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/milestones{/number}","notifications_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/labels{/name}","releases_url":"https://api.github.com/repos/hasuniea/carbon-device-mgt/releases{/id}","created_at":"2015-08-21T00:00:24Z","updated_at":"2015-08-21T00:00:26Z","pushed_at":"2015-09-02T11:57:47Z","git_url":"git://github.com/hasuniea/carbon-device-mgt.git","ssh_url":"git@github.com:hasuniea/carbon-device-mgt.git","clone_url":"https://github.com/hasuniea/carbon-device-mgt.git","svn_url":"https://github.com/hasuniea/carbon-device-mgt","homepage":null,"size":8296,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"e1da84ec5528f8d23cff65272054df3a0f0065a0","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":30521489,"name":"carbon-device-mgt","full_name":"wso2/carbon-device-mgt","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/carbon-device-mgt","description":"","fork":false,"url":"https://api.github.com/repos/wso2/carbon-device-mgt","forks_url":"https://api.github.com/repos/wso2/carbon-device-mgt/forks","keys_url":"https://api.github.com/repos/wso2/carbon-device-mgt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-device-mgt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-device-mgt/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-device-mgt/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-device-mgt/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-device-mgt/events","assignees_url":"https://api.github.com/repos/wso2/carbon-device-mgt/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-device-mgt/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-device-mgt/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-device-mgt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-device-mgt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-device-mgt/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-device-mgt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-device-mgt/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-device-mgt/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-device-mgt/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-device-mgt/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-device-mgt/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-device-mgt/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-device-mgt/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-device-mgt/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-device-mgt/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-device-mgt/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-device-mgt/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-device-mgt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-device-mgt/merges","archive_url":"https://api.github.com/repos/wso2/carbon-device-mgt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-device-mgt/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-device-mgt/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-device-mgt/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-device-mgt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-device-mgt/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-device-mgt/releases{/id}","created_at":"2015-02-09T06:11:38Z","updated_at":"2015-05-07T11:02:45Z","pushed_at":"2015-09-02T11:57:48Z","git_url":"git://github.com/wso2/carbon-device-mgt.git","ssh_url":"git@github.com:wso2/carbon-device-mgt.git","clone_url":"https://github.com/wso2/carbon-device-mgt.git","svn_url":"https://github.com/wso2/carbon-device-mgt","homepage":null,"size":8999,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls/28"},"html":{"href":"https://github.com/wso2/carbon-device-mgt/pull/28"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt/issues/28"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt/statuses/7642112a9fdae0affe571b8a99ed1d16c1f901c2"}}}}