{"action":"created","comment":{"url":"https://api.github.com/repos/bguerout/jongo/pulls/comments/56405210","id":56405210,"diff_hunk":"@@ -50,7 +52,11 @@ public WriteResult save(Object pojo) {\n     }\n \n     public WriteResult insert(Object... pojos) {\n-        List<DBObject> dbos = new ArrayList<DBObject>(pojos.length);\n+        return insertListOfObjects(Arrays.asList(pojos));\n+    }\n+    \n+    public WriteResult insertListOfObjects(List<?> pojos) {","path":"src/main/java/org/jongo/Insert.java","position":24,"original_position":24,"commit_id":"9d1c883c487a6b89ae389aa40fa87882ec0c2235","original_commit_id":"9d1c883c487a6b89ae389aa40fa87882ec0c2235","user":{"login":"ctrimble","id":614753,"avatar_url":"https://avatars.githubusercontent.com/u/614753?v=3","gravatar_id":"","url":"https://api.github.com/users/ctrimble","html_url":"https://github.com/ctrimble","followers_url":"https://api.github.com/users/ctrimble/followers","following_url":"https://api.github.com/users/ctrimble/following{/other_user}","gists_url":"https://api.github.com/users/ctrimble/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrimble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrimble/subscriptions","organizations_url":"https://api.github.com/users/ctrimble/orgs","repos_url":"https://api.github.com/users/ctrimble/repos","events_url":"https://api.github.com/users/ctrimble/events{/privacy}","received_events_url":"https://api.github.com/users/ctrimble/received_events","type":"User","site_admin":false},"body":"This signature might be better if it was `insertAll(Collection<?> pojos)`","created_at":"2016-03-16T20:07:32Z","updated_at":"2016-03-16T20:07:32Z","html_url":"https://github.com/bguerout/jongo/pull/246#discussion_r56405210","pull_request_url":"https://api.github.com/repos/bguerout/jongo/pulls/246","_links":{"self":{"href":"https://api.github.com/repos/bguerout/jongo/pulls/comments/56405210"},"html":{"href":"https://github.com/bguerout/jongo/pull/246#discussion_r56405210"},"pull_request":{"href":"https://api.github.com/repos/bguerout/jongo/pulls/246"}}},"pull_request":{"url":"https://api.github.com/repos/bguerout/jongo/pulls/246","id":30538453,"html_url":"https://github.com/bguerout/jongo/pull/246","diff_url":"https://github.com/bguerout/jongo/pull/246.diff","patch_url":"https://github.com/bguerout/jongo/pull/246.patch","issue_url":"https://api.github.com/repos/bguerout/jongo/issues/246","number":246,"state":"open","locked":false,"title":"handling insert of list of pojos","user":{"login":"laurents59","id":600313,"avatar_url":"https://avatars.githubusercontent.com/u/600313?v=3","gravatar_id":"","url":"https://api.github.com/users/laurents59","html_url":"https://github.com/laurents59","followers_url":"https://api.github.com/users/laurents59/followers","following_url":"https://api.github.com/users/laurents59/following{/other_user}","gists_url":"https://api.github.com/users/laurents59/gists{/gist_id}","starred_url":"https://api.github.com/users/laurents59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurents59/subscriptions","organizations_url":"https://api.github.com/users/laurents59/orgs","repos_url":"https://api.github.com/users/laurents59/repos","events_url":"https://api.github.com/users/laurents59/events{/privacy}","received_events_url":"https://api.github.com/users/laurents59/received_events","type":"User","site_admin":false},"body":"the method is different than inserting a single pojo which is a list as a single document\r\nunit test created","created_at":"2015-03-05T08:33:51Z","updated_at":"2016-03-16T20:07:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b5c447dbf4fd4ca9149c9505c384f06493ba6a3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bguerout/jongo/pulls/246/commits","review_comments_url":"https://api.github.com/repos/bguerout/jongo/pulls/246/comments","review_comment_url":"https://api.github.com/repos/bguerout/jongo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bguerout/jongo/issues/246/comments","statuses_url":"https://api.github.com/repos/bguerout/jongo/statuses/9d1c883c487a6b89ae389aa40fa87882ec0c2235","head":{"label":"laurents59:master","ref":"master","sha":"9d1c883c487a6b89ae389aa40fa87882ec0c2235","user":{"login":"laurents59","id":600313,"avatar_url":"https://avatars.githubusercontent.com/u/600313?v=3","gravatar_id":"","url":"https://api.github.com/users/laurents59","html_url":"https://github.com/laurents59","followers_url":"https://api.github.com/users/laurents59/followers","following_url":"https://api.github.com/users/laurents59/following{/other_user}","gists_url":"https://api.github.com/users/laurents59/gists{/gist_id}","starred_url":"https://api.github.com/users/laurents59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurents59/subscriptions","organizations_url":"https://api.github.com/users/laurents59/orgs","repos_url":"https://api.github.com/users/laurents59/repos","events_url":"https://api.github.com/users/laurents59/events{/privacy}","received_events_url":"https://api.github.com/users/laurents59/received_events","type":"User","site_admin":false},"repo":{"id":31600009,"name":"jongo","full_name":"laurents59/jongo","owner":{"login":"laurents59","id":600313,"avatar_url":"https://avatars.githubusercontent.com/u/600313?v=3","gravatar_id":"","url":"https://api.github.com/users/laurents59","html_url":"https://github.com/laurents59","followers_url":"https://api.github.com/users/laurents59/followers","following_url":"https://api.github.com/users/laurents59/following{/other_user}","gists_url":"https://api.github.com/users/laurents59/gists{/gist_id}","starred_url":"https://api.github.com/users/laurents59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurents59/subscriptions","organizations_url":"https://api.github.com/users/laurents59/orgs","repos_url":"https://api.github.com/users/laurents59/repos","events_url":"https://api.github.com/users/laurents59/events{/privacy}","received_events_url":"https://api.github.com/users/laurents59/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/laurents59/jongo","description":"Query in Java as in Mongo shell","fork":true,"url":"https://api.github.com/repos/laurents59/jongo","forks_url":"https://api.github.com/repos/laurents59/jongo/forks","keys_url":"https://api.github.com/repos/laurents59/jongo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laurents59/jongo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laurents59/jongo/teams","hooks_url":"https://api.github.com/repos/laurents59/jongo/hooks","issue_events_url":"https://api.github.com/repos/laurents59/jongo/issues/events{/number}","events_url":"https://api.github.com/repos/laurents59/jongo/events","assignees_url":"https://api.github.com/repos/laurents59/jongo/assignees{/user}","branches_url":"https://api.github.com/repos/laurents59/jongo/branches{/branch}","tags_url":"https://api.github.com/repos/laurents59/jongo/tags","blobs_url":"https://api.github.com/repos/laurents59/jongo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laurents59/jongo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laurents59/jongo/git/refs{/sha}","trees_url":"https://api.github.com/repos/laurents59/jongo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laurents59/jongo/statuses/{sha}","languages_url":"https://api.github.com/repos/laurents59/jongo/languages","stargazers_url":"https://api.github.com/repos/laurents59/jongo/stargazers","contributors_url":"https://api.github.com/repos/laurents59/jongo/contributors","subscribers_url":"https://api.github.com/repos/laurents59/jongo/subscribers","subscription_url":"https://api.github.com/repos/laurents59/jongo/subscription","commits_url":"https://api.github.com/repos/laurents59/jongo/commits{/sha}","git_commits_url":"https://api.github.com/repos/laurents59/jongo/git/commits{/sha}","comments_url":"https://api.github.com/repos/laurents59/jongo/comments{/number}","issue_comment_url":"https://api.github.com/repos/laurents59/jongo/issues/comments{/number}","contents_url":"https://api.github.com/repos/laurents59/jongo/contents/{+path}","compare_url":"https://api.github.com/repos/laurents59/jongo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laurents59/jongo/merges","archive_url":"https://api.github.com/repos/laurents59/jongo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laurents59/jongo/downloads","issues_url":"https://api.github.com/repos/laurents59/jongo/issues{/number}","pulls_url":"https://api.github.com/repos/laurents59/jongo/pulls{/number}","milestones_url":"https://api.github.com/repos/laurents59/jongo/milestones{/number}","notifications_url":"https://api.github.com/repos/laurents59/jongo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laurents59/jongo/labels{/name}","releases_url":"https://api.github.com/repos/laurents59/jongo/releases{/id}","deployments_url":"https://api.github.com/repos/laurents59/jongo/deployments","created_at":"2015-03-03T13:37:00Z","updated_at":"2015-03-05T08:33:06Z","pushed_at":"2015-03-05T08:33:06Z","git_url":"git://github.com/laurents59/jongo.git","ssh_url":"git@github.com:laurents59/jongo.git","clone_url":"https://github.com/laurents59/jongo.git","svn_url":"https://github.com/laurents59/jongo","homepage":"http://jongo.org","size":2754,"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":"bguerout:master","ref":"master","sha":"049cc9cd576e54c80e39da6247f58ea9e95bf18c","user":{"login":"bguerout","id":221211,"avatar_url":"https://avatars.githubusercontent.com/u/221211?v=3","gravatar_id":"","url":"https://api.github.com/users/bguerout","html_url":"https://github.com/bguerout","followers_url":"https://api.github.com/users/bguerout/followers","following_url":"https://api.github.com/users/bguerout/following{/other_user}","gists_url":"https://api.github.com/users/bguerout/gists{/gist_id}","starred_url":"https://api.github.com/users/bguerout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bguerout/subscriptions","organizations_url":"https://api.github.com/users/bguerout/orgs","repos_url":"https://api.github.com/users/bguerout/repos","events_url":"https://api.github.com/users/bguerout/events{/privacy}","received_events_url":"https://api.github.com/users/bguerout/received_events","type":"User","site_admin":false},"repo":{"id":3019584,"name":"jongo","full_name":"bguerout/jongo","owner":{"login":"bguerout","id":221211,"avatar_url":"https://avatars.githubusercontent.com/u/221211?v=3","gravatar_id":"","url":"https://api.github.com/users/bguerout","html_url":"https://github.com/bguerout","followers_url":"https://api.github.com/users/bguerout/followers","following_url":"https://api.github.com/users/bguerout/following{/other_user}","gists_url":"https://api.github.com/users/bguerout/gists{/gist_id}","starred_url":"https://api.github.com/users/bguerout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bguerout/subscriptions","organizations_url":"https://api.github.com/users/bguerout/orgs","repos_url":"https://api.github.com/users/bguerout/repos","events_url":"https://api.github.com/users/bguerout/events{/privacy}","received_events_url":"https://api.github.com/users/bguerout/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bguerout/jongo","description":"Query in Java as in Mongo shell","fork":false,"url":"https://api.github.com/repos/bguerout/jongo","forks_url":"https://api.github.com/repos/bguerout/jongo/forks","keys_url":"https://api.github.com/repos/bguerout/jongo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bguerout/jongo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bguerout/jongo/teams","hooks_url":"https://api.github.com/repos/bguerout/jongo/hooks","issue_events_url":"https://api.github.com/repos/bguerout/jongo/issues/events{/number}","events_url":"https://api.github.com/repos/bguerout/jongo/events","assignees_url":"https://api.github.com/repos/bguerout/jongo/assignees{/user}","branches_url":"https://api.github.com/repos/bguerout/jongo/branches{/branch}","tags_url":"https://api.github.com/repos/bguerout/jongo/tags","blobs_url":"https://api.github.com/repos/bguerout/jongo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bguerout/jongo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bguerout/jongo/git/refs{/sha}","trees_url":"https://api.github.com/repos/bguerout/jongo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bguerout/jongo/statuses/{sha}","languages_url":"https://api.github.com/repos/bguerout/jongo/languages","stargazers_url":"https://api.github.com/repos/bguerout/jongo/stargazers","contributors_url":"https://api.github.com/repos/bguerout/jongo/contributors","subscribers_url":"https://api.github.com/repos/bguerout/jongo/subscribers","subscription_url":"https://api.github.com/repos/bguerout/jongo/subscription","commits_url":"https://api.github.com/repos/bguerout/jongo/commits{/sha}","git_commits_url":"https://api.github.com/repos/bguerout/jongo/git/commits{/sha}","comments_url":"https://api.github.com/repos/bguerout/jongo/comments{/number}","issue_comment_url":"https://api.github.com/repos/bguerout/jongo/issues/comments{/number}","contents_url":"https://api.github.com/repos/bguerout/jongo/contents/{+path}","compare_url":"https://api.github.com/repos/bguerout/jongo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bguerout/jongo/merges","archive_url":"https://api.github.com/repos/bguerout/jongo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bguerout/jongo/downloads","issues_url":"https://api.github.com/repos/bguerout/jongo/issues{/number}","pulls_url":"https://api.github.com/repos/bguerout/jongo/pulls{/number}","milestones_url":"https://api.github.com/repos/bguerout/jongo/milestones{/number}","notifications_url":"https://api.github.com/repos/bguerout/jongo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bguerout/jongo/labels{/name}","releases_url":"https://api.github.com/repos/bguerout/jongo/releases{/id}","deployments_url":"https://api.github.com/repos/bguerout/jongo/deployments","created_at":"2011-12-20T13:24:03Z","updated_at":"2016-03-14T02:46:27Z","pushed_at":"2016-03-16T19:52:18Z","git_url":"git://github.com/bguerout/jongo.git","ssh_url":"git@github.com:bguerout/jongo.git","clone_url":"https://github.com/bguerout/jongo.git","svn_url":"https://github.com/bguerout/jongo","homepage":"http://jongo.org","size":3304,"stargazers_count":363,"watchers_count":363,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":115,"mirror_url":null,"open_issues_count":63,"forks":115,"open_issues":63,"watchers":363,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bguerout/jongo/pulls/246"},"html":{"href":"https://github.com/bguerout/jongo/pull/246"},"issue":{"href":"https://api.github.com/repos/bguerout/jongo/issues/246"},"comments":{"href":"https://api.github.com/repos/bguerout/jongo/issues/246/comments"},"review_comments":{"href":"https://api.github.com/repos/bguerout/jongo/pulls/246/comments"},"review_comment":{"href":"https://api.github.com/repos/bguerout/jongo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bguerout/jongo/pulls/246/commits"},"statuses":{"href":"https://api.github.com/repos/bguerout/jongo/statuses/9d1c883c487a6b89ae389aa40fa87882ec0c2235"}}}}