{"action":"created","comment":{"url":"https://api.github.com/repos/javers/javers/pulls/comments/49424860","id":49424860,"diff_hunk":"@@ -39,6 +39,7 @@\n     public static final String SNAPSHOT_COMMIT_FK =    \"commit_fk\";\n     public static final String SNAPSHOT_GLOBAL_ID_FK = \"global_id_fk\";\n     public static final String SNAPSHOT_TYPE =         \"type\";\n+    public static final String VERSION =               \"version\";","path":"javers-persistence-sql/src/main/java/org/javers/repository/sql/schema/FixedSchemaFactory.java","position":4,"original_position":4,"commit_id":"fd8a2db9f7ada5b9a97065926c4406fc58a69b7f","original_commit_id":"4cec1b2bba9fe64eff4f700f18b2b6c1cc94b8b7","user":{"login":"milanov","id":2484716,"avatar_url":"https://avatars.githubusercontent.com/u/2484716?v=3","gravatar_id":"","url":"https://api.github.com/users/milanov","html_url":"https://github.com/milanov","followers_url":"https://api.github.com/users/milanov/followers","following_url":"https://api.github.com/users/milanov/following{/other_user}","gists_url":"https://api.github.com/users/milanov/gists{/gist_id}","starred_url":"https://api.github.com/users/milanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milanov/subscriptions","organizations_url":"https://api.github.com/users/milanov/orgs","repos_url":"https://api.github.com/users/milanov/repos","events_url":"https://api.github.com/users/milanov/events{/privacy}","received_events_url":"https://api.github.com/users/milanov/received_events","type":"User","site_admin":false},"body":"Hi, I updated the PR the way we discussed it, but I'm still not sure if we can't update the previous records in the jv_snapshots with the corresponding versions. What is the field that is the same for all snapshots of a given entity (global_id_fk)? I'll try some combination of join/update/count query :)","created_at":"2016-01-12T08:09:36Z","updated_at":"2016-01-12T08:09:36Z","html_url":"https://github.com/javers/javers/pull/294#discussion_r49424860","pull_request_url":"https://api.github.com/repos/javers/javers/pulls/294","_links":{"self":{"href":"https://api.github.com/repos/javers/javers/pulls/comments/49424860"},"html":{"href":"https://github.com/javers/javers/pull/294#discussion_r49424860"},"pull_request":{"href":"https://api.github.com/repos/javers/javers/pulls/294"}}},"pull_request":{"url":"https://api.github.com/repos/javers/javers/pulls/294","id":55543510,"html_url":"https://github.com/javers/javers/pull/294","diff_url":"https://github.com/javers/javers/pull/294.diff","patch_url":"https://github.com/javers/javers/pull/294.patch","issue_url":"https://api.github.com/repos/javers/javers/issues/294","number":294,"state":"open","locked":false,"title":"Add local version field in snapshots","user":{"login":"milanov","id":2484716,"avatar_url":"https://avatars.githubusercontent.com/u/2484716?v=3","gravatar_id":"","url":"https://api.github.com/users/milanov","html_url":"https://github.com/milanov","followers_url":"https://api.github.com/users/milanov/followers","following_url":"https://api.github.com/users/milanov/following{/other_user}","gists_url":"https://api.github.com/users/milanov/gists{/gist_id}","starred_url":"https://api.github.com/users/milanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milanov/subscriptions","organizations_url":"https://api.github.com/users/milanov/orgs","repos_url":"https://api.github.com/users/milanov/repos","events_url":"https://api.github.com/users/milanov/events{/privacy}","received_events_url":"https://api.github.com/users/milanov/received_events","type":"User","site_admin":false},"body":"I'm happy to accept any comments, suggestions, etc :)","created_at":"2016-01-09T14:30:49Z","updated_at":"2016-01-12T08:09:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fe7b61e0a25e6274ffa2de3fbbfada6190c2458","assignee":{"login":"bartoszwalacik","id":2511028,"avatar_url":"https://avatars.githubusercontent.com/u/2511028?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoszwalacik","html_url":"https://github.com/bartoszwalacik","followers_url":"https://api.github.com/users/bartoszwalacik/followers","following_url":"https://api.github.com/users/bartoszwalacik/following{/other_user}","gists_url":"https://api.github.com/users/bartoszwalacik/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszwalacik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszwalacik/subscriptions","organizations_url":"https://api.github.com/users/bartoszwalacik/orgs","repos_url":"https://api.github.com/users/bartoszwalacik/repos","events_url":"https://api.github.com/users/bartoszwalacik/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszwalacik/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/javers/javers/pulls/294/commits","review_comments_url":"https://api.github.com/repos/javers/javers/pulls/294/comments","review_comment_url":"https://api.github.com/repos/javers/javers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/javers/javers/issues/294/comments","statuses_url":"https://api.github.com/repos/javers/javers/statuses/fd8a2db9f7ada5b9a97065926c4406fc58a69b7f","head":{"label":"milanov:add-local-version-to-snapshots","ref":"add-local-version-to-snapshots","sha":"fd8a2db9f7ada5b9a97065926c4406fc58a69b7f","user":{"login":"milanov","id":2484716,"avatar_url":"https://avatars.githubusercontent.com/u/2484716?v=3","gravatar_id":"","url":"https://api.github.com/users/milanov","html_url":"https://github.com/milanov","followers_url":"https://api.github.com/users/milanov/followers","following_url":"https://api.github.com/users/milanov/following{/other_user}","gists_url":"https://api.github.com/users/milanov/gists{/gist_id}","starred_url":"https://api.github.com/users/milanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milanov/subscriptions","organizations_url":"https://api.github.com/users/milanov/orgs","repos_url":"https://api.github.com/users/milanov/repos","events_url":"https://api.github.com/users/milanov/events{/privacy}","received_events_url":"https://api.github.com/users/milanov/received_events","type":"User","site_admin":false},"repo":{"id":49319134,"name":"javers","full_name":"milanov/javers","owner":{"login":"milanov","id":2484716,"avatar_url":"https://avatars.githubusercontent.com/u/2484716?v=3","gravatar_id":"","url":"https://api.github.com/users/milanov","html_url":"https://github.com/milanov","followers_url":"https://api.github.com/users/milanov/followers","following_url":"https://api.github.com/users/milanov/following{/other_user}","gists_url":"https://api.github.com/users/milanov/gists{/gist_id}","starred_url":"https://api.github.com/users/milanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milanov/subscriptions","organizations_url":"https://api.github.com/users/milanov/orgs","repos_url":"https://api.github.com/users/milanov/repos","events_url":"https://api.github.com/users/milanov/events{/privacy}","received_events_url":"https://api.github.com/users/milanov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/milanov/javers","description":"JaVers is a tool for auditing object-oriented data","fork":true,"url":"https://api.github.com/repos/milanov/javers","forks_url":"https://api.github.com/repos/milanov/javers/forks","keys_url":"https://api.github.com/repos/milanov/javers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/milanov/javers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/milanov/javers/teams","hooks_url":"https://api.github.com/repos/milanov/javers/hooks","issue_events_url":"https://api.github.com/repos/milanov/javers/issues/events{/number}","events_url":"https://api.github.com/repos/milanov/javers/events","assignees_url":"https://api.github.com/repos/milanov/javers/assignees{/user}","branches_url":"https://api.github.com/repos/milanov/javers/branches{/branch}","tags_url":"https://api.github.com/repos/milanov/javers/tags","blobs_url":"https://api.github.com/repos/milanov/javers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/milanov/javers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/milanov/javers/git/refs{/sha}","trees_url":"https://api.github.com/repos/milanov/javers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/milanov/javers/statuses/{sha}","languages_url":"https://api.github.com/repos/milanov/javers/languages","stargazers_url":"https://api.github.com/repos/milanov/javers/stargazers","contributors_url":"https://api.github.com/repos/milanov/javers/contributors","subscribers_url":"https://api.github.com/repos/milanov/javers/subscribers","subscription_url":"https://api.github.com/repos/milanov/javers/subscription","commits_url":"https://api.github.com/repos/milanov/javers/commits{/sha}","git_commits_url":"https://api.github.com/repos/milanov/javers/git/commits{/sha}","comments_url":"https://api.github.com/repos/milanov/javers/comments{/number}","issue_comment_url":"https://api.github.com/repos/milanov/javers/issues/comments{/number}","contents_url":"https://api.github.com/repos/milanov/javers/contents/{+path}","compare_url":"https://api.github.com/repos/milanov/javers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/milanov/javers/merges","archive_url":"https://api.github.com/repos/milanov/javers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/milanov/javers/downloads","issues_url":"https://api.github.com/repos/milanov/javers/issues{/number}","pulls_url":"https://api.github.com/repos/milanov/javers/pulls{/number}","milestones_url":"https://api.github.com/repos/milanov/javers/milestones{/number}","notifications_url":"https://api.github.com/repos/milanov/javers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/milanov/javers/labels{/name}","releases_url":"https://api.github.com/repos/milanov/javers/releases{/id}","created_at":"2016-01-09T09:58:50Z","updated_at":"2016-01-09T09:58:51Z","pushed_at":"2016-01-11T20:48:44Z","git_url":"git://github.com/milanov/javers.git","ssh_url":"git@github.com:milanov/javers.git","clone_url":"https://github.com/milanov/javers.git","svn_url":"https://github.com/milanov/javers","homepage":"","size":3465,"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":"javers:master","ref":"master","sha":"1e0a8e49e50e45774df33afd23c01db50a970cdd","user":{"login":"javers","id":6149633,"avatar_url":"https://avatars.githubusercontent.com/u/6149633?v=3","gravatar_id":"","url":"https://api.github.com/users/javers","html_url":"https://github.com/javers","followers_url":"https://api.github.com/users/javers/followers","following_url":"https://api.github.com/users/javers/following{/other_user}","gists_url":"https://api.github.com/users/javers/gists{/gist_id}","starred_url":"https://api.github.com/users/javers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javers/subscriptions","organizations_url":"https://api.github.com/users/javers/orgs","repos_url":"https://api.github.com/users/javers/repos","events_url":"https://api.github.com/users/javers/events{/privacy}","received_events_url":"https://api.github.com/users/javers/received_events","type":"Organization","site_admin":false},"repo":{"id":15071115,"name":"javers","full_name":"javers/javers","owner":{"login":"javers","id":6149633,"avatar_url":"https://avatars.githubusercontent.com/u/6149633?v=3","gravatar_id":"","url":"https://api.github.com/users/javers","html_url":"https://github.com/javers","followers_url":"https://api.github.com/users/javers/followers","following_url":"https://api.github.com/users/javers/following{/other_user}","gists_url":"https://api.github.com/users/javers/gists{/gist_id}","starred_url":"https://api.github.com/users/javers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javers/subscriptions","organizations_url":"https://api.github.com/users/javers/orgs","repos_url":"https://api.github.com/users/javers/repos","events_url":"https://api.github.com/users/javers/events{/privacy}","received_events_url":"https://api.github.com/users/javers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/javers/javers","description":"JaVers is a tool for auditing object-oriented data","fork":false,"url":"https://api.github.com/repos/javers/javers","forks_url":"https://api.github.com/repos/javers/javers/forks","keys_url":"https://api.github.com/repos/javers/javers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javers/javers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javers/javers/teams","hooks_url":"https://api.github.com/repos/javers/javers/hooks","issue_events_url":"https://api.github.com/repos/javers/javers/issues/events{/number}","events_url":"https://api.github.com/repos/javers/javers/events","assignees_url":"https://api.github.com/repos/javers/javers/assignees{/user}","branches_url":"https://api.github.com/repos/javers/javers/branches{/branch}","tags_url":"https://api.github.com/repos/javers/javers/tags","blobs_url":"https://api.github.com/repos/javers/javers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javers/javers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javers/javers/git/refs{/sha}","trees_url":"https://api.github.com/repos/javers/javers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javers/javers/statuses/{sha}","languages_url":"https://api.github.com/repos/javers/javers/languages","stargazers_url":"https://api.github.com/repos/javers/javers/stargazers","contributors_url":"https://api.github.com/repos/javers/javers/contributors","subscribers_url":"https://api.github.com/repos/javers/javers/subscribers","subscription_url":"https://api.github.com/repos/javers/javers/subscription","commits_url":"https://api.github.com/repos/javers/javers/commits{/sha}","git_commits_url":"https://api.github.com/repos/javers/javers/git/commits{/sha}","comments_url":"https://api.github.com/repos/javers/javers/comments{/number}","issue_comment_url":"https://api.github.com/repos/javers/javers/issues/comments{/number}","contents_url":"https://api.github.com/repos/javers/javers/contents/{+path}","compare_url":"https://api.github.com/repos/javers/javers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javers/javers/merges","archive_url":"https://api.github.com/repos/javers/javers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javers/javers/downloads","issues_url":"https://api.github.com/repos/javers/javers/issues{/number}","pulls_url":"https://api.github.com/repos/javers/javers/pulls{/number}","milestones_url":"https://api.github.com/repos/javers/javers/milestones{/number}","notifications_url":"https://api.github.com/repos/javers/javers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javers/javers/labels{/name}","releases_url":"https://api.github.com/repos/javers/javers/releases{/id}","created_at":"2013-12-10T08:23:03Z","updated_at":"2016-01-08T15:05:20Z","pushed_at":"2016-01-11T20:48:44Z","git_url":"git://github.com/javers/javers.git","ssh_url":"git@github.com:javers/javers.git","clone_url":"https://github.com/javers/javers.git","svn_url":"https://github.com/javers/javers","homepage":"","size":4005,"stargazers_count":125,"watchers_count":125,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":28,"forks":39,"open_issues":28,"watchers":125,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/javers/javers/pulls/294"},"html":{"href":"https://github.com/javers/javers/pull/294"},"issue":{"href":"https://api.github.com/repos/javers/javers/issues/294"},"comments":{"href":"https://api.github.com/repos/javers/javers/issues/294/comments"},"review_comments":{"href":"https://api.github.com/repos/javers/javers/pulls/294/comments"},"review_comment":{"href":"https://api.github.com/repos/javers/javers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/javers/javers/pulls/294/commits"},"statuses":{"href":"https://api.github.com/repos/javers/javers/statuses/fd8a2db9f7ada5b9a97065926c4406fc58a69b7f"}}}}