{"action":"created","comment":{"url":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls/comments/34505831","id":34505831,"diff_hunk":"@@ -0,0 +1,39 @@\n+/*\n+ * Copyright (c) 2008-2015 MongoDB, Inc.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.bson.codecs.configuration.mapper.conventions;\n+\n+import org.bson.codecs.configuration.mapper.ClassModel;\n+import org.bson.codecs.configuration.mapper.Weights;\n+\n+/**\n+ * Attempts to configure the collection name as the lower case form of the class name.\n+ */\n+public class LowerCaseClassNamingConvention implements Convention {\n+    @Override\n+    public void apply(final ClassModel model) {\n+        model.setCollectionName(getWeight(), model.getType().getSimpleName().toLowerCase());","path":"bson/src/main/org/bson/codecs/configuration/mapper/conventions/LowerCaseClassNamingConvention.java","position":28,"original_position":28,"commit_id":"8c1b0708b1ea08fbc07b02ab4ddcdfc7cad42a2d","original_commit_id":"8c1b0708b1ea08fbc07b02ab4ddcdfc7cad42a2d","user":{"login":"evanchooly","id":195021,"avatar_url":"https://avatars.githubusercontent.com/u/195021?v=3","gravatar_id":"","url":"https://api.github.com/users/evanchooly","html_url":"https://github.com/evanchooly","followers_url":"https://api.github.com/users/evanchooly/followers","following_url":"https://api.github.com/users/evanchooly/following{/other_user}","gists_url":"https://api.github.com/users/evanchooly/gists{/gist_id}","starred_url":"https://api.github.com/users/evanchooly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanchooly/subscriptions","organizations_url":"https://api.github.com/users/evanchooly/orgs","repos_url":"https://api.github.com/users/evanchooly/repos","events_url":"https://api.github.com/users/evanchooly/events{/privacy}","received_events_url":"https://api.github.com/users/evanchooly/received_events","type":"User","site_admin":false},"body":"Could be debated.  This is mostly here for POC more than any recommendation.  The final set of default conventions has yet to be decided but will probably mirror the c# driver's where it can.","created_at":"2015-07-13T20:12:02Z","updated_at":"2015-07-13T20:12:02Z","html_url":"https://github.com/mongodb/mongo-java-driver/pull/323#discussion_r34505831","pull_request_url":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls/323","_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls/comments/34505831"},"html":{"href":"https://github.com/mongodb/mongo-java-driver/pull/323#discussion_r34505831"},"pull_request":{"href":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls/323"}}},"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls/323","id":39484012,"html_url":"https://github.com/mongodb/mongo-java-driver/pull/323","diff_url":"https://github.com/mongodb/mongo-java-driver/pull/323.diff","patch_url":"https://github.com/mongodb/mongo-java-driver/pull/323.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-java-driver/issues/323","number":323,"state":"open","locked":false,"title":"Conventions","user":{"login":"evanchooly","id":195021,"avatar_url":"https://avatars.githubusercontent.com/u/195021?v=3","gravatar_id":"","url":"https://api.github.com/users/evanchooly","html_url":"https://github.com/evanchooly","followers_url":"https://api.github.com/users/evanchooly/followers","following_url":"https://api.github.com/users/evanchooly/following{/other_user}","gists_url":"https://api.github.com/users/evanchooly/gists{/gist_id}","starred_url":"https://api.github.com/users/evanchooly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanchooly/subscriptions","organizations_url":"https://api.github.com/users/evanchooly/orgs","repos_url":"https://api.github.com/users/evanchooly/repos","events_url":"https://api.github.com/users/evanchooly/events{/privacy}","received_events_url":"https://api.github.com/users/evanchooly/received_events","type":"User","site_admin":false},"body":"@jyemin @rozza @craiggwilson \r\n\r\nThis should cover most of the conventions stuff we've discussed so far.  The biggest outstanding pieces are probably generics and polymorphism support.","created_at":"2015-07-08T14:38:44Z","updated_at":"2015-07-13T20:12:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"529d1c64e039d95a078c50f38199e617c0278ce6","assignee":{"login":"craiggwilson","id":167901,"avatar_url":"https://avatars.githubusercontent.com/u/167901?v=3","gravatar_id":"","url":"https://api.github.com/users/craiggwilson","html_url":"https://github.com/craiggwilson","followers_url":"https://api.github.com/users/craiggwilson/followers","following_url":"https://api.github.com/users/craiggwilson/following{/other_user}","gists_url":"https://api.github.com/users/craiggwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/craiggwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craiggwilson/subscriptions","organizations_url":"https://api.github.com/users/craiggwilson/orgs","repos_url":"https://api.github.com/users/craiggwilson/repos","events_url":"https://api.github.com/users/craiggwilson/events{/privacy}","received_events_url":"https://api.github.com/users/craiggwilson/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls/323/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls/323/comments","review_comment_url":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/mongo-java-driver/issues/323/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-java-driver/statuses/8c1b0708b1ea08fbc07b02ab4ddcdfc7cad42a2d","head":{"label":"mongodb:conventions","ref":"conventions","sha":"8c1b0708b1ea08fbc07b02ab4ddcdfc7cad42a2d","user":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":108050,"name":"mongo-java-driver","full_name":"mongodb/mongo-java-driver","owner":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodb/mongo-java-driver","description":"The Java driver for MongoDB ","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-java-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-java-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-java-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-java-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-java-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-java-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-java-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-java-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-java-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-java-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-java-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-java-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-java-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-java-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-java-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-java-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-java-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-java-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-java-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-java-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-java-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-java-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-java-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-java-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-java-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongo-java-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-java-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-java-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-java-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-java-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-java-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-java-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-java-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-java-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-java-driver/releases{/id}","created_at":"2009-01-15T15:16:29Z","updated_at":"2015-07-13T14:56:28Z","pushed_at":"2015-07-10T15:46:03Z","git_url":"git://github.com/mongodb/mongo-java-driver.git","ssh_url":"git@github.com:mongodb/mongo-java-driver.git","clone_url":"https://github.com/mongodb/mongo-java-driver.git","svn_url":"https://github.com/mongodb/mongo-java-driver","homepage":"https://mongodb.github.io/mongo-java-driver","size":45390,"stargazers_count":1281,"watchers_count":1281,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":798,"mirror_url":null,"open_issues_count":21,"forks":798,"open_issues":21,"watchers":1281,"default_branch":"master"}},"base":{"label":"mongodb:pojocodec","ref":"pojocodec","sha":"6200eb56bdbf696c66d620c64419d37e4bb29586","user":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":108050,"name":"mongo-java-driver","full_name":"mongodb/mongo-java-driver","owner":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodb/mongo-java-driver","description":"The Java driver for MongoDB ","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-java-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-java-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-java-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-java-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-java-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-java-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-java-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-java-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-java-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-java-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-java-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-java-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-java-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-java-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-java-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-java-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-java-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-java-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-java-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-java-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-java-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-java-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-java-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-java-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-java-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongo-java-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-java-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-java-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-java-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-java-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-java-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-java-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-java-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-java-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-java-driver/releases{/id}","created_at":"2009-01-15T15:16:29Z","updated_at":"2015-07-13T14:56:28Z","pushed_at":"2015-07-10T15:46:03Z","git_url":"git://github.com/mongodb/mongo-java-driver.git","ssh_url":"git@github.com:mongodb/mongo-java-driver.git","clone_url":"https://github.com/mongodb/mongo-java-driver.git","svn_url":"https://github.com/mongodb/mongo-java-driver","homepage":"https://mongodb.github.io/mongo-java-driver","size":45390,"stargazers_count":1281,"watchers_count":1281,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":798,"mirror_url":null,"open_issues_count":21,"forks":798,"open_issues":21,"watchers":1281,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls/323"},"html":{"href":"https://github.com/mongodb/mongo-java-driver/pull/323"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-java-driver/issues/323"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-java-driver/issues/323/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls/323/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/mongo-java-driver/pulls/323/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-java-driver/statuses/8c1b0708b1ea08fbc07b02ab4ddcdfc7cad42a2d"}}}}