{"action":"created","comment":{"url":"https://api.github.com/repos/junkerm/specmate/pulls/comments/180311313","pull_request_review_id":110707226,"id":180311313,"diff_hunk":"@@ -0,0 +1,51 @@\n+package com.specmate.migration.h2;\n+\n+import java.sql.Connection;\n+import java.util.ArrayList;\n+import java.util.Date;\n+import java.util.List;\n+\n+import com.specmate.common.SpecmateException;\n+\n+public abstract class SQLMapper {\n+\tprotected Connection connection;\n+\tprotected String packageName;\n+\tprotected String sourceVersion;\n+\tprotected String targetVersion;\n+\t\n+\tpublic SQLMapper(Connection connection, String packageName, String sourceVersion, String targetVersion) {\n+\t\tthis.connection = connection;\n+\t\tthis.packageName = packageName;\n+\t\tthis.sourceVersion = sourceVersion;\n+\t\tthis.targetVersion = targetVersion;\n+\t}\n+\n+\tprotected List<String> insertExternalReferences(String objectName, List<String> attributeNames) throws SpecmateException {\n+\t\tint id = SQLUtil.getIntResult(\"SELECT id FROM CDO_EXTERNAL_REFS ORDER BY id ASC LIMIT 1\", 1, connection);\n+\t\t\n+\t\tList<String> queries = new ArrayList<>();\n+\t\tString baseUri = \"http://specmate.com/\" + targetVersion + \"/\" + packageName + \"#//\" + objectName;","path":"bundles/specmate-migration/src/com/specmate/migration/h2/SQLMapper.java","position":27,"original_position":27,"commit_id":"db9012c7d33629c6d5fb26aa4ea554e8f2f8ef29","original_commit_id":"db9012c7d33629c6d5fb26aa4ea554e8f2f8ef29","user":{"login":"junkerm","id":8638706,"avatar_url":"https://avatars3.githubusercontent.com/u/8638706?v=4","gravatar_id":"","url":"https://api.github.com/users/junkerm","html_url":"https://github.com/junkerm","followers_url":"https://api.github.com/users/junkerm/followers","following_url":"https://api.github.com/users/junkerm/following{/other_user}","gists_url":"https://api.github.com/users/junkerm/gists{/gist_id}","starred_url":"https://api.github.com/users/junkerm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junkerm/subscriptions","organizations_url":"https://api.github.com/users/junkerm/orgs","repos_url":"https://api.github.com/users/junkerm/repos","events_url":"https://api.github.com/users/junkerm/events{/privacy}","received_events_url":"https://api.github.com/users/junkerm/received_events","type":"User","site_admin":false},"body":"make \"http://specmate.com\" a constant","created_at":"2018-04-10T06:44:10Z","updated_at":"2018-04-10T06:44:21Z","html_url":"https://github.com/junkerm/specmate/pull/126#discussion_r180311313","pull_request_url":"https://api.github.com/repos/junkerm/specmate/pulls/126","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/junkerm/specmate/pulls/comments/180311313"},"html":{"href":"https://github.com/junkerm/specmate/pull/126#discussion_r180311313"},"pull_request":{"href":"https://api.github.com/repos/junkerm/specmate/pulls/126"}}},"pull_request":{"url":"https://api.github.com/repos/junkerm/specmate/pulls/126","id":179793182,"html_url":"https://github.com/junkerm/specmate/pull/126","diff_url":"https://github.com/junkerm/specmate/pull/126.diff","patch_url":"https://github.com/junkerm/specmate/pull/126.patch","issue_url":"https://api.github.com/repos/junkerm/specmate/issues/126","number":126,"state":"open","locked":false,"title":"Migrator for renamed attributes","user":{"login":"mikmakmuk","id":720692,"avatar_url":"https://avatars2.githubusercontent.com/u/720692?v=4","gravatar_id":"","url":"https://api.github.com/users/mikmakmuk","html_url":"https://github.com/mikmakmuk","followers_url":"https://api.github.com/users/mikmakmuk/followers","following_url":"https://api.github.com/users/mikmakmuk/following{/other_user}","gists_url":"https://api.github.com/users/mikmakmuk/gists{/gist_id}","starred_url":"https://api.github.com/users/mikmakmuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikmakmuk/subscriptions","organizations_url":"https://api.github.com/users/mikmakmuk/orgs","repos_url":"https://api.github.com/users/mikmakmuk/repos","events_url":"https://api.github.com/users/mikmakmuk/events{/privacy}","received_events_url":"https://api.github.com/users/mikmakmuk/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-05T20:52:06Z","updated_at":"2018-04-10T06:44:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"818b0818710ebc3b3e11365f096446ad872dea88","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/junkerm/specmate/pulls/126/commits","review_comments_url":"https://api.github.com/repos/junkerm/specmate/pulls/126/comments","review_comment_url":"https://api.github.com/repos/junkerm/specmate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/junkerm/specmate/issues/126/comments","statuses_url":"https://api.github.com/repos/junkerm/specmate/statuses/db9012c7d33629c6d5fb26aa4ea554e8f2f8ef29","head":{"label":"junkerm:migration-renameattribute","ref":"migration-renameattribute","sha":"db9012c7d33629c6d5fb26aa4ea554e8f2f8ef29","user":{"login":"junkerm","id":8638706,"avatar_url":"https://avatars3.githubusercontent.com/u/8638706?v=4","gravatar_id":"","url":"https://api.github.com/users/junkerm","html_url":"https://github.com/junkerm","followers_url":"https://api.github.com/users/junkerm/followers","following_url":"https://api.github.com/users/junkerm/following{/other_user}","gists_url":"https://api.github.com/users/junkerm/gists{/gist_id}","starred_url":"https://api.github.com/users/junkerm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junkerm/subscriptions","organizations_url":"https://api.github.com/users/junkerm/orgs","repos_url":"https://api.github.com/users/junkerm/repos","events_url":"https://api.github.com/users/junkerm/events{/privacy}","received_events_url":"https://api.github.com/users/junkerm/received_events","type":"User","site_admin":false},"repo":{"id":77048443,"name":"specmate","full_name":"junkerm/specmate","owner":{"login":"junkerm","id":8638706,"avatar_url":"https://avatars3.githubusercontent.com/u/8638706?v=4","gravatar_id":"","url":"https://api.github.com/users/junkerm","html_url":"https://github.com/junkerm","followers_url":"https://api.github.com/users/junkerm/followers","following_url":"https://api.github.com/users/junkerm/following{/other_user}","gists_url":"https://api.github.com/users/junkerm/gists{/gist_id}","starred_url":"https://api.github.com/users/junkerm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junkerm/subscriptions","organizations_url":"https://api.github.com/users/junkerm/orgs","repos_url":"https://api.github.com/users/junkerm/repos","events_url":"https://api.github.com/users/junkerm/events{/privacy}","received_events_url":"https://api.github.com/users/junkerm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/junkerm/specmate","description":null,"fork":false,"url":"https://api.github.com/repos/junkerm/specmate","forks_url":"https://api.github.com/repos/junkerm/specmate/forks","keys_url":"https://api.github.com/repos/junkerm/specmate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/junkerm/specmate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/junkerm/specmate/teams","hooks_url":"https://api.github.com/repos/junkerm/specmate/hooks","issue_events_url":"https://api.github.com/repos/junkerm/specmate/issues/events{/number}","events_url":"https://api.github.com/repos/junkerm/specmate/events","assignees_url":"https://api.github.com/repos/junkerm/specmate/assignees{/user}","branches_url":"https://api.github.com/repos/junkerm/specmate/branches{/branch}","tags_url":"https://api.github.com/repos/junkerm/specmate/tags","blobs_url":"https://api.github.com/repos/junkerm/specmate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/junkerm/specmate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/junkerm/specmate/git/refs{/sha}","trees_url":"https://api.github.com/repos/junkerm/specmate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/junkerm/specmate/statuses/{sha}","languages_url":"https://api.github.com/repos/junkerm/specmate/languages","stargazers_url":"https://api.github.com/repos/junkerm/specmate/stargazers","contributors_url":"https://api.github.com/repos/junkerm/specmate/contributors","subscribers_url":"https://api.github.com/repos/junkerm/specmate/subscribers","subscription_url":"https://api.github.com/repos/junkerm/specmate/subscription","commits_url":"https://api.github.com/repos/junkerm/specmate/commits{/sha}","git_commits_url":"https://api.github.com/repos/junkerm/specmate/git/commits{/sha}","comments_url":"https://api.github.com/repos/junkerm/specmate/comments{/number}","issue_comment_url":"https://api.github.com/repos/junkerm/specmate/issues/comments{/number}","contents_url":"https://api.github.com/repos/junkerm/specmate/contents/{+path}","compare_url":"https://api.github.com/repos/junkerm/specmate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/junkerm/specmate/merges","archive_url":"https://api.github.com/repos/junkerm/specmate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/junkerm/specmate/downloads","issues_url":"https://api.github.com/repos/junkerm/specmate/issues{/number}","pulls_url":"https://api.github.com/repos/junkerm/specmate/pulls{/number}","milestones_url":"https://api.github.com/repos/junkerm/specmate/milestones{/number}","notifications_url":"https://api.github.com/repos/junkerm/specmate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/junkerm/specmate/labels{/name}","releases_url":"https://api.github.com/repos/junkerm/specmate/releases{/id}","deployments_url":"https://api.github.com/repos/junkerm/specmate/deployments","created_at":"2016-12-21T12:10:02Z","updated_at":"2018-04-07T07:35:01Z","pushed_at":"2018-04-10T06:31:49Z","git_url":"git://github.com/junkerm/specmate.git","ssh_url":"git@github.com:junkerm/specmate.git","clone_url":"https://github.com/junkerm/specmate.git","svn_url":"https://github.com/junkerm/specmate","homepage":null,"size":246150,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"base":{"label":"junkerm:migration-newobject","ref":"migration-newobject","sha":"3caa24ffa0d3a19d33cbef82fd7b079c79e01b07","user":{"login":"junkerm","id":8638706,"avatar_url":"https://avatars3.githubusercontent.com/u/8638706?v=4","gravatar_id":"","url":"https://api.github.com/users/junkerm","html_url":"https://github.com/junkerm","followers_url":"https://api.github.com/users/junkerm/followers","following_url":"https://api.github.com/users/junkerm/following{/other_user}","gists_url":"https://api.github.com/users/junkerm/gists{/gist_id}","starred_url":"https://api.github.com/users/junkerm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junkerm/subscriptions","organizations_url":"https://api.github.com/users/junkerm/orgs","repos_url":"https://api.github.com/users/junkerm/repos","events_url":"https://api.github.com/users/junkerm/events{/privacy}","received_events_url":"https://api.github.com/users/junkerm/received_events","type":"User","site_admin":false},"repo":{"id":77048443,"name":"specmate","full_name":"junkerm/specmate","owner":{"login":"junkerm","id":8638706,"avatar_url":"https://avatars3.githubusercontent.com/u/8638706?v=4","gravatar_id":"","url":"https://api.github.com/users/junkerm","html_url":"https://github.com/junkerm","followers_url":"https://api.github.com/users/junkerm/followers","following_url":"https://api.github.com/users/junkerm/following{/other_user}","gists_url":"https://api.github.com/users/junkerm/gists{/gist_id}","starred_url":"https://api.github.com/users/junkerm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junkerm/subscriptions","organizations_url":"https://api.github.com/users/junkerm/orgs","repos_url":"https://api.github.com/users/junkerm/repos","events_url":"https://api.github.com/users/junkerm/events{/privacy}","received_events_url":"https://api.github.com/users/junkerm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/junkerm/specmate","description":null,"fork":false,"url":"https://api.github.com/repos/junkerm/specmate","forks_url":"https://api.github.com/repos/junkerm/specmate/forks","keys_url":"https://api.github.com/repos/junkerm/specmate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/junkerm/specmate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/junkerm/specmate/teams","hooks_url":"https://api.github.com/repos/junkerm/specmate/hooks","issue_events_url":"https://api.github.com/repos/junkerm/specmate/issues/events{/number}","events_url":"https://api.github.com/repos/junkerm/specmate/events","assignees_url":"https://api.github.com/repos/junkerm/specmate/assignees{/user}","branches_url":"https://api.github.com/repos/junkerm/specmate/branches{/branch}","tags_url":"https://api.github.com/repos/junkerm/specmate/tags","blobs_url":"https://api.github.com/repos/junkerm/specmate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/junkerm/specmate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/junkerm/specmate/git/refs{/sha}","trees_url":"https://api.github.com/repos/junkerm/specmate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/junkerm/specmate/statuses/{sha}","languages_url":"https://api.github.com/repos/junkerm/specmate/languages","stargazers_url":"https://api.github.com/repos/junkerm/specmate/stargazers","contributors_url":"https://api.github.com/repos/junkerm/specmate/contributors","subscribers_url":"https://api.github.com/repos/junkerm/specmate/subscribers","subscription_url":"https://api.github.com/repos/junkerm/specmate/subscription","commits_url":"https://api.github.com/repos/junkerm/specmate/commits{/sha}","git_commits_url":"https://api.github.com/repos/junkerm/specmate/git/commits{/sha}","comments_url":"https://api.github.com/repos/junkerm/specmate/comments{/number}","issue_comment_url":"https://api.github.com/repos/junkerm/specmate/issues/comments{/number}","contents_url":"https://api.github.com/repos/junkerm/specmate/contents/{+path}","compare_url":"https://api.github.com/repos/junkerm/specmate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/junkerm/specmate/merges","archive_url":"https://api.github.com/repos/junkerm/specmate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/junkerm/specmate/downloads","issues_url":"https://api.github.com/repos/junkerm/specmate/issues{/number}","pulls_url":"https://api.github.com/repos/junkerm/specmate/pulls{/number}","milestones_url":"https://api.github.com/repos/junkerm/specmate/milestones{/number}","notifications_url":"https://api.github.com/repos/junkerm/specmate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/junkerm/specmate/labels{/name}","releases_url":"https://api.github.com/repos/junkerm/specmate/releases{/id}","deployments_url":"https://api.github.com/repos/junkerm/specmate/deployments","created_at":"2016-12-21T12:10:02Z","updated_at":"2018-04-07T07:35:01Z","pushed_at":"2018-04-10T06:31:49Z","git_url":"git://github.com/junkerm/specmate.git","ssh_url":"git@github.com:junkerm/specmate.git","clone_url":"https://github.com/junkerm/specmate.git","svn_url":"https://github.com/junkerm/specmate","homepage":null,"size":246150,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/junkerm/specmate/pulls/126"},"html":{"href":"https://github.com/junkerm/specmate/pull/126"},"issue":{"href":"https://api.github.com/repos/junkerm/specmate/issues/126"},"comments":{"href":"https://api.github.com/repos/junkerm/specmate/issues/126/comments"},"review_comments":{"href":"https://api.github.com/repos/junkerm/specmate/pulls/126/comments"},"review_comment":{"href":"https://api.github.com/repos/junkerm/specmate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/junkerm/specmate/pulls/126/commits"},"statuses":{"href":"https://api.github.com/repos/junkerm/specmate/statuses/db9012c7d33629c6d5fb26aa4ea554e8f2f8ef29"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"junkerm"}}