{"action":"created","comment":{"url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls/comments/57325122","id":57325122,"diff_hunk":"@@ -0,0 +1,30 @@\n+package insurance.policy.utils;\n+\n+import insurance.policy.policy.PolicyService;\n+\n+import org.hibernate.SessionFactory;\n+import org.hibernate.boot.registry.StandardServiceRegistryBuilder;\n+import org.hibernate.cfg.Configuration;\n+\n+import com.google.inject.AbstractModule;\n+import com.google.inject.Provides;\n+import com.google.inject.Singleton;\n+\n+public class ServiceSessionFactory extends AbstractModule {","path":"src/main/java/insurance/policy/utils/ServiceSessionFactory.java","position":13,"original_position":13,"commit_id":"20f06363f59ff074d03049ff10ce5268f48601b0","original_commit_id":"20f06363f59ff074d03049ff10ce5268f48601b0","user":{"login":"AntonIvanov87","id":3289141,"avatar_url":"https://avatars.githubusercontent.com/u/3289141?v=3","gravatar_id":"","url":"https://api.github.com/users/AntonIvanov87","html_url":"https://github.com/AntonIvanov87","followers_url":"https://api.github.com/users/AntonIvanov87/followers","following_url":"https://api.github.com/users/AntonIvanov87/following{/other_user}","gists_url":"https://api.github.com/users/AntonIvanov87/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonIvanov87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonIvanov87/subscriptions","organizations_url":"https://api.github.com/users/AntonIvanov87/orgs","repos_url":"https://api.github.com/users/AntonIvanov87/repos","events_url":"https://api.github.com/users/AntonIvanov87/events{/privacy}","received_events_url":"https://api.github.com/users/AntonIvanov87/received_events","type":"User","site_admin":false},"body":"Все-таки в java принято называть XXXFactory, что-то, что создает соответствующую XXX сущность. А у тебя этот класс не только это делает. Да и наследуется от AbstractModule. Поэтому название SSFactory только запутывает. Это modul ;-)","created_at":"2016-03-24T14:33:39Z","updated_at":"2016-03-24T14:33:39Z","html_url":"https://github.com/osadchievana/InsurancePoliciesDBIOC/pull/1#discussion_r57325122","pull_request_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls/comments/57325122"},"html":{"href":"https://github.com/osadchievana/InsurancePoliciesDBIOC/pull/1#discussion_r57325122"},"pull_request":{"href":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls/1","id":63652137,"html_url":"https://github.com/osadchievana/InsurancePoliciesDBIOC/pull/1","diff_url":"https://github.com/osadchievana/InsurancePoliciesDBIOC/pull/1.diff","patch_url":"https://github.com/osadchievana/InsurancePoliciesDBIOC/pull/1.patch","issue_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/issues/1","number":1,"state":"open","locked":false,"title":"This is an example of:","user":{"login":"osadchievana","id":16452175,"avatar_url":"https://avatars.githubusercontent.com/u/16452175?v=3","gravatar_id":"","url":"https://api.github.com/users/osadchievana","html_url":"https://github.com/osadchievana","followers_url":"https://api.github.com/users/osadchievana/followers","following_url":"https://api.github.com/users/osadchievana/following{/other_user}","gists_url":"https://api.github.com/users/osadchievana/gists{/gist_id}","starred_url":"https://api.github.com/users/osadchievana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osadchievana/subscriptions","organizations_url":"https://api.github.com/users/osadchievana/orgs","repos_url":"https://api.github.com/users/osadchievana/repos","events_url":"https://api.github.com/users/osadchievana/events{/privacy}","received_events_url":"https://api.github.com/users/osadchievana/received_events","type":"User","site_admin":false},"body":"- JDBC\r\n- JDBC Spring\r\n- Hibernate\r\n- Google Guice\r\n- one transaction with two tables (adding a user you must add his insurance policy, all users must have at least one insurance policy)","created_at":"2016-03-22T00:04:26Z","updated_at":"2016-03-24T14:33:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc92ada6ec25fd8070a6d4a8f935209128ad676e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls/1/commits","review_comments_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls/1/comments","review_comment_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/issues/1/comments","statuses_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/statuses/20f06363f59ff074d03049ff10ce5268f48601b0","head":{"label":"osadchievana:InsurancePolicies","ref":"InsurancePolicies","sha":"20f06363f59ff074d03049ff10ce5268f48601b0","user":{"login":"osadchievana","id":16452175,"avatar_url":"https://avatars.githubusercontent.com/u/16452175?v=3","gravatar_id":"","url":"https://api.github.com/users/osadchievana","html_url":"https://github.com/osadchievana","followers_url":"https://api.github.com/users/osadchievana/followers","following_url":"https://api.github.com/users/osadchievana/following{/other_user}","gists_url":"https://api.github.com/users/osadchievana/gists{/gist_id}","starred_url":"https://api.github.com/users/osadchievana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osadchievana/subscriptions","organizations_url":"https://api.github.com/users/osadchievana/orgs","repos_url":"https://api.github.com/users/osadchievana/repos","events_url":"https://api.github.com/users/osadchievana/events{/privacy}","received_events_url":"https://api.github.com/users/osadchievana/received_events","type":"User","site_admin":false},"repo":{"id":54431306,"name":"InsurancePoliciesDBIOC","full_name":"osadchievana/InsurancePoliciesDBIOC","owner":{"login":"osadchievana","id":16452175,"avatar_url":"https://avatars.githubusercontent.com/u/16452175?v=3","gravatar_id":"","url":"https://api.github.com/users/osadchievana","html_url":"https://github.com/osadchievana","followers_url":"https://api.github.com/users/osadchievana/followers","following_url":"https://api.github.com/users/osadchievana/following{/other_user}","gists_url":"https://api.github.com/users/osadchievana/gists{/gist_id}","starred_url":"https://api.github.com/users/osadchievana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osadchievana/subscriptions","organizations_url":"https://api.github.com/users/osadchievana/orgs","repos_url":"https://api.github.com/users/osadchievana/repos","events_url":"https://api.github.com/users/osadchievana/events{/privacy}","received_events_url":"https://api.github.com/users/osadchievana/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/osadchievana/InsurancePoliciesDBIOC","description":"","fork":false,"url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC","forks_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/forks","keys_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/teams","hooks_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/hooks","issue_events_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/issues/events{/number}","events_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/events","assignees_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/assignees{/user}","branches_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/branches{/branch}","tags_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/tags","blobs_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/git/refs{/sha}","trees_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/statuses/{sha}","languages_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/languages","stargazers_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/stargazers","contributors_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/contributors","subscribers_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/subscribers","subscription_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/subscription","commits_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/commits{/sha}","git_commits_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/git/commits{/sha}","comments_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/comments{/number}","issue_comment_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/issues/comments{/number}","contents_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/contents/{+path}","compare_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/merges","archive_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/downloads","issues_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/issues{/number}","pulls_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls{/number}","milestones_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/milestones{/number}","notifications_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/labels{/name}","releases_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/releases{/id}","deployments_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/deployments","created_at":"2016-03-21T23:53:37Z","updated_at":"2016-03-21T23:53:37Z","pushed_at":"2016-03-22T00:04:27Z","git_url":"git://github.com/osadchievana/InsurancePoliciesDBIOC.git","ssh_url":"git@github.com:osadchievana/InsurancePoliciesDBIOC.git","clone_url":"https://github.com/osadchievana/InsurancePoliciesDBIOC.git","svn_url":"https://github.com/osadchievana/InsurancePoliciesDBIOC","homepage":null,"size":15,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"osadchievana:master","ref":"master","sha":"eacf8b4534db5a7dfb59af66914a025f8432d8f3","user":{"login":"osadchievana","id":16452175,"avatar_url":"https://avatars.githubusercontent.com/u/16452175?v=3","gravatar_id":"","url":"https://api.github.com/users/osadchievana","html_url":"https://github.com/osadchievana","followers_url":"https://api.github.com/users/osadchievana/followers","following_url":"https://api.github.com/users/osadchievana/following{/other_user}","gists_url":"https://api.github.com/users/osadchievana/gists{/gist_id}","starred_url":"https://api.github.com/users/osadchievana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osadchievana/subscriptions","organizations_url":"https://api.github.com/users/osadchievana/orgs","repos_url":"https://api.github.com/users/osadchievana/repos","events_url":"https://api.github.com/users/osadchievana/events{/privacy}","received_events_url":"https://api.github.com/users/osadchievana/received_events","type":"User","site_admin":false},"repo":{"id":54431306,"name":"InsurancePoliciesDBIOC","full_name":"osadchievana/InsurancePoliciesDBIOC","owner":{"login":"osadchievana","id":16452175,"avatar_url":"https://avatars.githubusercontent.com/u/16452175?v=3","gravatar_id":"","url":"https://api.github.com/users/osadchievana","html_url":"https://github.com/osadchievana","followers_url":"https://api.github.com/users/osadchievana/followers","following_url":"https://api.github.com/users/osadchievana/following{/other_user}","gists_url":"https://api.github.com/users/osadchievana/gists{/gist_id}","starred_url":"https://api.github.com/users/osadchievana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osadchievana/subscriptions","organizations_url":"https://api.github.com/users/osadchievana/orgs","repos_url":"https://api.github.com/users/osadchievana/repos","events_url":"https://api.github.com/users/osadchievana/events{/privacy}","received_events_url":"https://api.github.com/users/osadchievana/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/osadchievana/InsurancePoliciesDBIOC","description":"","fork":false,"url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC","forks_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/forks","keys_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/teams","hooks_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/hooks","issue_events_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/issues/events{/number}","events_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/events","assignees_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/assignees{/user}","branches_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/branches{/branch}","tags_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/tags","blobs_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/git/refs{/sha}","trees_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/statuses/{sha}","languages_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/languages","stargazers_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/stargazers","contributors_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/contributors","subscribers_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/subscribers","subscription_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/subscription","commits_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/commits{/sha}","git_commits_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/git/commits{/sha}","comments_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/comments{/number}","issue_comment_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/issues/comments{/number}","contents_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/contents/{+path}","compare_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/merges","archive_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/downloads","issues_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/issues{/number}","pulls_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls{/number}","milestones_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/milestones{/number}","notifications_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/labels{/name}","releases_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/releases{/id}","deployments_url":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/deployments","created_at":"2016-03-21T23:53:37Z","updated_at":"2016-03-21T23:53:37Z","pushed_at":"2016-03-22T00:04:27Z","git_url":"git://github.com/osadchievana/InsurancePoliciesDBIOC.git","ssh_url":"git@github.com:osadchievana/InsurancePoliciesDBIOC.git","clone_url":"https://github.com/osadchievana/InsurancePoliciesDBIOC.git","svn_url":"https://github.com/osadchievana/InsurancePoliciesDBIOC","homepage":null,"size":15,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls/1"},"html":{"href":"https://github.com/osadchievana/InsurancePoliciesDBIOC/pull/1"},"issue":{"href":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/issues/1"},"comments":{"href":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/osadchievana/InsurancePoliciesDBIOC/statuses/20f06363f59ff074d03049ff10ce5268f48601b0"}}}}