{"action":"created","comment":{"url":"https://api.github.com/repos/m153301/online_808/pulls/comments/35564521","id":35564521,"diff_hunk":"@@ -0,0 +1,36 @@\n+\n+package controller;\n+\n+/*****************************************************************************/\n+//\t\t商品登録、発注ログを同時に格納するManager\n+/*****************************************************************************/\n+\n+import dao.ItemDAO;\n+import dao.OrderHistoryDAO;\n+import beans.Item;\n+import beans.OrderHistory;\n+\n+public class ItemInfoRegistManager {\n+\n+\n+\n+\t//Itemテーブルに発注した商品を格納\n+\t//格納した商品のitem_idを検索し、返り値として返す\n+\tpublic int registItemInfo(Item item){\n+\n+\t\tItemDAO itemDAO = new ItemDAO();\n+\t\titemDAO.insertItem(item.getItemId(), item.getItemName(), item.getItemPrice(), item.getItemStock());\n+\t\tint item_id = itemDAO.selectItemIdByItemName(item.getItemName());\n+\n+\t\treturn item_id;\n+\t}\n+\n+\n+\t//登録した商品を発注ログに格納する\n+\tpublic void registItemLog(OrderHistory orderHistory) {","path":"WEB-INF/src/controller/ItemInfoRegistManager.java","position":30,"original_position":30,"commit_id":"cbcd9ac8c480ac617f14e91e5c12e02d46b1b003","original_commit_id":"cbcd9ac8c480ac617f14e91e5c12e02d46b1b003","user":{"login":"shu920921","id":12455284,"avatar_url":"https://avatars.githubusercontent.com/u/12455284?v=3","gravatar_id":"","url":"https://api.github.com/users/shu920921","html_url":"https://github.com/shu920921","followers_url":"https://api.github.com/users/shu920921/followers","following_url":"https://api.github.com/users/shu920921/following{/other_user}","gists_url":"https://api.github.com/users/shu920921/gists{/gist_id}","starred_url":"https://api.github.com/users/shu920921/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shu920921/subscriptions","organizations_url":"https://api.github.com/users/shu920921/orgs","repos_url":"https://api.github.com/users/shu920921/repos","events_url":"https://api.github.com/users/shu920921/events{/privacy}","received_events_url":"https://api.github.com/users/shu920921/received_events","type":"User","site_admin":false},"body":"オブジェクト生成はservletでってことかな？","created_at":"2015-07-27T17:48:09Z","updated_at":"2015-07-27T17:48:09Z","html_url":"https://github.com/m153301/online_808/pull/5#discussion_r35564521","pull_request_url":"https://api.github.com/repos/m153301/online_808/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/m153301/online_808/pulls/comments/35564521"},"html":{"href":"https://github.com/m153301/online_808/pull/5#discussion_r35564521"},"pull_request":{"href":"https://api.github.com/repos/m153301/online_808/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/m153301/online_808/pulls/5","id":40908171,"html_url":"https://github.com/m153301/online_808/pull/5","diff_url":"https://github.com/m153301/online_808/pull/5.diff","patch_url":"https://github.com/m153301/online_808/pull/5.patch","issue_url":"https://api.github.com/repos/m153301/online_808/issues/5","number":5,"state":"open","locked":false,"title":"Feature/item info regist","user":{"login":"mikoto3510","id":10069912,"avatar_url":"https://avatars.githubusercontent.com/u/10069912?v=3","gravatar_id":"","url":"https://api.github.com/users/mikoto3510","html_url":"https://github.com/mikoto3510","followers_url":"https://api.github.com/users/mikoto3510/followers","following_url":"https://api.github.com/users/mikoto3510/following{/other_user}","gists_url":"https://api.github.com/users/mikoto3510/gists{/gist_id}","starred_url":"https://api.github.com/users/mikoto3510/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikoto3510/subscriptions","organizations_url":"https://api.github.com/users/mikoto3510/orgs","repos_url":"https://api.github.com/users/mikoto3510/repos","events_url":"https://api.github.com/users/mikoto3510/events{/privacy}","received_events_url":"https://api.github.com/users/mikoto3510/received_events","type":"User","site_admin":false},"body":"商品登録機能を実装\r\nソースコードを整形した\r\n例外系列は未実装\r\n動くことは確認済み","created_at":"2015-07-27T14:21:39Z","updated_at":"2015-07-27T17:48:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d20f44c2cbd0caa312a2bc0d381d4c365afb5287","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/m153301/online_808/pulls/5/commits","review_comments_url":"https://api.github.com/repos/m153301/online_808/pulls/5/comments","review_comment_url":"https://api.github.com/repos/m153301/online_808/pulls/comments{/number}","comments_url":"https://api.github.com/repos/m153301/online_808/issues/5/comments","statuses_url":"https://api.github.com/repos/m153301/online_808/statuses/cbcd9ac8c480ac617f14e91e5c12e02d46b1b003","head":{"label":"m153301:feature/ItemInfoRegist","ref":"feature/ItemInfoRegist","sha":"cbcd9ac8c480ac617f14e91e5c12e02d46b1b003","user":{"login":"m153301","id":12403325,"avatar_url":"https://avatars.githubusercontent.com/u/12403325?v=3","gravatar_id":"","url":"https://api.github.com/users/m153301","html_url":"https://github.com/m153301","followers_url":"https://api.github.com/users/m153301/followers","following_url":"https://api.github.com/users/m153301/following{/other_user}","gists_url":"https://api.github.com/users/m153301/gists{/gist_id}","starred_url":"https://api.github.com/users/m153301/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m153301/subscriptions","organizations_url":"https://api.github.com/users/m153301/orgs","repos_url":"https://api.github.com/users/m153301/repos","events_url":"https://api.github.com/users/m153301/events{/privacy}","received_events_url":"https://api.github.com/users/m153301/received_events","type":"User","site_admin":false},"repo":{"id":39644556,"name":"online_808","full_name":"m153301/online_808","owner":{"login":"m153301","id":12403325,"avatar_url":"https://avatars.githubusercontent.com/u/12403325?v=3","gravatar_id":"","url":"https://api.github.com/users/m153301","html_url":"https://github.com/m153301","followers_url":"https://api.github.com/users/m153301/followers","following_url":"https://api.github.com/users/m153301/following{/other_user}","gists_url":"https://api.github.com/users/m153301/gists{/gist_id}","starred_url":"https://api.github.com/users/m153301/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m153301/subscriptions","organizations_url":"https://api.github.com/users/m153301/orgs","repos_url":"https://api.github.com/users/m153301/repos","events_url":"https://api.github.com/users/m153301/events{/privacy}","received_events_url":"https://api.github.com/users/m153301/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/m153301/online_808","description":"","fork":false,"url":"https://api.github.com/repos/m153301/online_808","forks_url":"https://api.github.com/repos/m153301/online_808/forks","keys_url":"https://api.github.com/repos/m153301/online_808/keys{/key_id}","collaborators_url":"https://api.github.com/repos/m153301/online_808/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/m153301/online_808/teams","hooks_url":"https://api.github.com/repos/m153301/online_808/hooks","issue_events_url":"https://api.github.com/repos/m153301/online_808/issues/events{/number}","events_url":"https://api.github.com/repos/m153301/online_808/events","assignees_url":"https://api.github.com/repos/m153301/online_808/assignees{/user}","branches_url":"https://api.github.com/repos/m153301/online_808/branches{/branch}","tags_url":"https://api.github.com/repos/m153301/online_808/tags","blobs_url":"https://api.github.com/repos/m153301/online_808/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/m153301/online_808/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/m153301/online_808/git/refs{/sha}","trees_url":"https://api.github.com/repos/m153301/online_808/git/trees{/sha}","statuses_url":"https://api.github.com/repos/m153301/online_808/statuses/{sha}","languages_url":"https://api.github.com/repos/m153301/online_808/languages","stargazers_url":"https://api.github.com/repos/m153301/online_808/stargazers","contributors_url":"https://api.github.com/repos/m153301/online_808/contributors","subscribers_url":"https://api.github.com/repos/m153301/online_808/subscribers","subscription_url":"https://api.github.com/repos/m153301/online_808/subscription","commits_url":"https://api.github.com/repos/m153301/online_808/commits{/sha}","git_commits_url":"https://api.github.com/repos/m153301/online_808/git/commits{/sha}","comments_url":"https://api.github.com/repos/m153301/online_808/comments{/number}","issue_comment_url":"https://api.github.com/repos/m153301/online_808/issues/comments{/number}","contents_url":"https://api.github.com/repos/m153301/online_808/contents/{+path}","compare_url":"https://api.github.com/repos/m153301/online_808/compare/{base}...{head}","merges_url":"https://api.github.com/repos/m153301/online_808/merges","archive_url":"https://api.github.com/repos/m153301/online_808/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/m153301/online_808/downloads","issues_url":"https://api.github.com/repos/m153301/online_808/issues{/number}","pulls_url":"https://api.github.com/repos/m153301/online_808/pulls{/number}","milestones_url":"https://api.github.com/repos/m153301/online_808/milestones{/number}","notifications_url":"https://api.github.com/repos/m153301/online_808/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/m153301/online_808/labels{/name}","releases_url":"https://api.github.com/repos/m153301/online_808/releases{/id}","created_at":"2015-07-24T16:20:38Z","updated_at":"2015-07-24T16:22:40Z","pushed_at":"2015-07-27T14:21:39Z","git_url":"git://github.com/m153301/online_808.git","ssh_url":"git@github.com:m153301/online_808.git","clone_url":"https://github.com/m153301/online_808.git","svn_url":"https://github.com/m153301/online_808","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"m153301:develop","ref":"develop","sha":"77d350ec83b49425fae6ce49c6f4faeaf52d102f","user":{"login":"m153301","id":12403325,"avatar_url":"https://avatars.githubusercontent.com/u/12403325?v=3","gravatar_id":"","url":"https://api.github.com/users/m153301","html_url":"https://github.com/m153301","followers_url":"https://api.github.com/users/m153301/followers","following_url":"https://api.github.com/users/m153301/following{/other_user}","gists_url":"https://api.github.com/users/m153301/gists{/gist_id}","starred_url":"https://api.github.com/users/m153301/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m153301/subscriptions","organizations_url":"https://api.github.com/users/m153301/orgs","repos_url":"https://api.github.com/users/m153301/repos","events_url":"https://api.github.com/users/m153301/events{/privacy}","received_events_url":"https://api.github.com/users/m153301/received_events","type":"User","site_admin":false},"repo":{"id":39644556,"name":"online_808","full_name":"m153301/online_808","owner":{"login":"m153301","id":12403325,"avatar_url":"https://avatars.githubusercontent.com/u/12403325?v=3","gravatar_id":"","url":"https://api.github.com/users/m153301","html_url":"https://github.com/m153301","followers_url":"https://api.github.com/users/m153301/followers","following_url":"https://api.github.com/users/m153301/following{/other_user}","gists_url":"https://api.github.com/users/m153301/gists{/gist_id}","starred_url":"https://api.github.com/users/m153301/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m153301/subscriptions","organizations_url":"https://api.github.com/users/m153301/orgs","repos_url":"https://api.github.com/users/m153301/repos","events_url":"https://api.github.com/users/m153301/events{/privacy}","received_events_url":"https://api.github.com/users/m153301/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/m153301/online_808","description":"","fork":false,"url":"https://api.github.com/repos/m153301/online_808","forks_url":"https://api.github.com/repos/m153301/online_808/forks","keys_url":"https://api.github.com/repos/m153301/online_808/keys{/key_id}","collaborators_url":"https://api.github.com/repos/m153301/online_808/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/m153301/online_808/teams","hooks_url":"https://api.github.com/repos/m153301/online_808/hooks","issue_events_url":"https://api.github.com/repos/m153301/online_808/issues/events{/number}","events_url":"https://api.github.com/repos/m153301/online_808/events","assignees_url":"https://api.github.com/repos/m153301/online_808/assignees{/user}","branches_url":"https://api.github.com/repos/m153301/online_808/branches{/branch}","tags_url":"https://api.github.com/repos/m153301/online_808/tags","blobs_url":"https://api.github.com/repos/m153301/online_808/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/m153301/online_808/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/m153301/online_808/git/refs{/sha}","trees_url":"https://api.github.com/repos/m153301/online_808/git/trees{/sha}","statuses_url":"https://api.github.com/repos/m153301/online_808/statuses/{sha}","languages_url":"https://api.github.com/repos/m153301/online_808/languages","stargazers_url":"https://api.github.com/repos/m153301/online_808/stargazers","contributors_url":"https://api.github.com/repos/m153301/online_808/contributors","subscribers_url":"https://api.github.com/repos/m153301/online_808/subscribers","subscription_url":"https://api.github.com/repos/m153301/online_808/subscription","commits_url":"https://api.github.com/repos/m153301/online_808/commits{/sha}","git_commits_url":"https://api.github.com/repos/m153301/online_808/git/commits{/sha}","comments_url":"https://api.github.com/repos/m153301/online_808/comments{/number}","issue_comment_url":"https://api.github.com/repos/m153301/online_808/issues/comments{/number}","contents_url":"https://api.github.com/repos/m153301/online_808/contents/{+path}","compare_url":"https://api.github.com/repos/m153301/online_808/compare/{base}...{head}","merges_url":"https://api.github.com/repos/m153301/online_808/merges","archive_url":"https://api.github.com/repos/m153301/online_808/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/m153301/online_808/downloads","issues_url":"https://api.github.com/repos/m153301/online_808/issues{/number}","pulls_url":"https://api.github.com/repos/m153301/online_808/pulls{/number}","milestones_url":"https://api.github.com/repos/m153301/online_808/milestones{/number}","notifications_url":"https://api.github.com/repos/m153301/online_808/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/m153301/online_808/labels{/name}","releases_url":"https://api.github.com/repos/m153301/online_808/releases{/id}","created_at":"2015-07-24T16:20:38Z","updated_at":"2015-07-24T16:22:40Z","pushed_at":"2015-07-27T14:21:39Z","git_url":"git://github.com/m153301/online_808.git","ssh_url":"git@github.com:m153301/online_808.git","clone_url":"https://github.com/m153301/online_808.git","svn_url":"https://github.com/m153301/online_808","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","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/m153301/online_808/pulls/5"},"html":{"href":"https://github.com/m153301/online_808/pull/5"},"issue":{"href":"https://api.github.com/repos/m153301/online_808/issues/5"},"comments":{"href":"https://api.github.com/repos/m153301/online_808/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/m153301/online_808/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/m153301/online_808/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/m153301/online_808/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/m153301/online_808/statuses/cbcd9ac8c480ac617f14e91e5c12e02d46b1b003"}}}}