{"action":"created","comment":{"url":"https://api.github.com/repos/jilen/slickext/pulls/comments/29101689","id":29101689,"diff_hunk":"@@ -3,9 +3,34 @@ package slick.ext\n import slick.ext.macros._\n \n trait UserRepo {\n-  val profile: scala.slick.driver.JdbcProfile\n+  //val profile: scala.slick.driver.JdbcProfile\n+  val profile = scala.slick.driver.H2Driver\n   import profile.simple._\n+  import scala.slick.collection.heterogenous._\n+  \n+  val db = Database.forURL(\"jdbc:h2:mem:slickextTest\", driver = \"org.h2.Driver\")\n \n   @table[User](tableName = \"user\")\n   class Users\n+  \n+  //I suggest that TableQuery's name use model + \"Table\" to avoid the table name like \"news\"\n+  @table[TestUser](tableName = \"test_user\")\n+  class TestUserTable\n+  \n }\n+\n+object TestCase extends App {\n+  \n+  object UserRepo extends UserRepo\n+  \n+  \n+  import UserRepo._\n+  import UserRepo.profile.simple._","path":"src/test/scala/slick/ext/repo.scala","position":27,"original_position":27,"commit_id":"11c867003ec54b49fce447f2f6e33a438cc9ef25","original_commit_id":"11c867003ec54b49fce447f2f6e33a438cc9ef25","user":{"login":"jilen","id":546573,"avatar_url":"https://avatars.githubusercontent.com/u/546573?v=3","gravatar_id":"","url":"https://api.github.com/users/jilen","html_url":"https://github.com/jilen","followers_url":"https://api.github.com/users/jilen/followers","following_url":"https://api.github.com/users/jilen/following{/other_user}","gists_url":"https://api.github.com/users/jilen/gists{/gist_id}","starred_url":"https://api.github.com/users/jilen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jilen/subscriptions","organizations_url":"https://api.github.com/users/jilen/orgs","repos_url":"https://api.github.com/users/jilen/repos","events_url":"https://api.github.com/users/jilen/events{/privacy}","received_events_url":"https://api.github.com/users/jilen/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/versioned/images/favicon.png) Issue found: [Put imports in the beginning of the package](https://www.codacy.com/app/jilen-zhang/slickext/file/583337849/issues/source?bid=2273443&fileBranchId=2273469#l28)","created_at":"2015-04-25T16:15:13Z","updated_at":"2015-04-25T16:15:13Z","html_url":"https://github.com/jilen/slickext/pull/1#discussion_r29101689","pull_request_url":"https://api.github.com/repos/jilen/slickext/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/jilen/slickext/pulls/comments/29101689"},"html":{"href":"https://github.com/jilen/slickext/pull/1#discussion_r29101689"},"pull_request":{"href":"https://api.github.com/repos/jilen/slickext/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/jilen/slickext/pulls/1","id":34108180,"html_url":"https://github.com/jilen/slickext/pull/1","diff_url":"https://github.com/jilen/slickext/pull/1.diff","patch_url":"https://github.com/jilen/slickext/pull/1.patch","issue_url":"https://api.github.com/repos/jilen/slickext/issues/1","number":1,"state":"open","locked":false,"title":"Fix 22 columns problem.","user":{"login":"djx314","id":3401242,"avatar_url":"https://avatars.githubusercontent.com/u/3401242?v=3","gravatar_id":"","url":"https://api.github.com/users/djx314","html_url":"https://github.com/djx314","followers_url":"https://api.github.com/users/djx314/followers","following_url":"https://api.github.com/users/djx314/following{/other_user}","gists_url":"https://api.github.com/users/djx314/gists{/gist_id}","starred_url":"https://api.github.com/users/djx314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djx314/subscriptions","organizations_url":"https://api.github.com/users/djx314/orgs","repos_url":"https://api.github.com/users/djx314/repos","events_url":"https://api.github.com/users/djx314/events{/privacy}","received_events_url":"https://api.github.com/users/djx314/received_events","type":"User","site_admin":false},"body":"Fix 22 columns problem and add some more than 22 columns case class with some fields have default value for test.","created_at":"2015-04-25T15:45:37Z","updated_at":"2015-04-25T16:15:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jilen/slickext/pulls/1/commits","review_comments_url":"https://api.github.com/repos/jilen/slickext/pulls/1/comments","review_comment_url":"https://api.github.com/repos/jilen/slickext/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jilen/slickext/issues/1/comments","statuses_url":"https://api.github.com/repos/jilen/slickext/statuses/11c867003ec54b49fce447f2f6e33a438cc9ef25","head":{"label":"djx314:master","ref":"master","sha":"11c867003ec54b49fce447f2f6e33a438cc9ef25","user":{"login":"djx314","id":3401242,"avatar_url":"https://avatars.githubusercontent.com/u/3401242?v=3","gravatar_id":"","url":"https://api.github.com/users/djx314","html_url":"https://github.com/djx314","followers_url":"https://api.github.com/users/djx314/followers","following_url":"https://api.github.com/users/djx314/following{/other_user}","gists_url":"https://api.github.com/users/djx314/gists{/gist_id}","starred_url":"https://api.github.com/users/djx314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djx314/subscriptions","organizations_url":"https://api.github.com/users/djx314/orgs","repos_url":"https://api.github.com/users/djx314/repos","events_url":"https://api.github.com/users/djx314/events{/privacy}","received_events_url":"https://api.github.com/users/djx314/received_events","type":"User","site_admin":false},"repo":{"id":34561782,"name":"slickext","full_name":"djx314/slickext","owner":{"login":"djx314","id":3401242,"avatar_url":"https://avatars.githubusercontent.com/u/3401242?v=3","gravatar_id":"","url":"https://api.github.com/users/djx314","html_url":"https://github.com/djx314","followers_url":"https://api.github.com/users/djx314/followers","following_url":"https://api.github.com/users/djx314/following{/other_user}","gists_url":"https://api.github.com/users/djx314/gists{/gist_id}","starred_url":"https://api.github.com/users/djx314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djx314/subscriptions","organizations_url":"https://api.github.com/users/djx314/orgs","repos_url":"https://api.github.com/users/djx314/repos","events_url":"https://api.github.com/users/djx314/events{/privacy}","received_events_url":"https://api.github.com/users/djx314/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djx314/slickext","description":"Slick extensions, currently only auto-mapping macros are implemented","fork":true,"url":"https://api.github.com/repos/djx314/slickext","forks_url":"https://api.github.com/repos/djx314/slickext/forks","keys_url":"https://api.github.com/repos/djx314/slickext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djx314/slickext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djx314/slickext/teams","hooks_url":"https://api.github.com/repos/djx314/slickext/hooks","issue_events_url":"https://api.github.com/repos/djx314/slickext/issues/events{/number}","events_url":"https://api.github.com/repos/djx314/slickext/events","assignees_url":"https://api.github.com/repos/djx314/slickext/assignees{/user}","branches_url":"https://api.github.com/repos/djx314/slickext/branches{/branch}","tags_url":"https://api.github.com/repos/djx314/slickext/tags","blobs_url":"https://api.github.com/repos/djx314/slickext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djx314/slickext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djx314/slickext/git/refs{/sha}","trees_url":"https://api.github.com/repos/djx314/slickext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djx314/slickext/statuses/{sha}","languages_url":"https://api.github.com/repos/djx314/slickext/languages","stargazers_url":"https://api.github.com/repos/djx314/slickext/stargazers","contributors_url":"https://api.github.com/repos/djx314/slickext/contributors","subscribers_url":"https://api.github.com/repos/djx314/slickext/subscribers","subscription_url":"https://api.github.com/repos/djx314/slickext/subscription","commits_url":"https://api.github.com/repos/djx314/slickext/commits{/sha}","git_commits_url":"https://api.github.com/repos/djx314/slickext/git/commits{/sha}","comments_url":"https://api.github.com/repos/djx314/slickext/comments{/number}","issue_comment_url":"https://api.github.com/repos/djx314/slickext/issues/comments{/number}","contents_url":"https://api.github.com/repos/djx314/slickext/contents/{+path}","compare_url":"https://api.github.com/repos/djx314/slickext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djx314/slickext/merges","archive_url":"https://api.github.com/repos/djx314/slickext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djx314/slickext/downloads","issues_url":"https://api.github.com/repos/djx314/slickext/issues{/number}","pulls_url":"https://api.github.com/repos/djx314/slickext/pulls{/number}","milestones_url":"https://api.github.com/repos/djx314/slickext/milestones{/number}","notifications_url":"https://api.github.com/repos/djx314/slickext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djx314/slickext/labels{/name}","releases_url":"https://api.github.com/repos/djx314/slickext/releases{/id}","created_at":"2015-04-25T08:50:59Z","updated_at":"2015-04-25T15:37:43Z","pushed_at":"2015-04-25T15:37:43Z","git_url":"git://github.com/djx314/slickext.git","ssh_url":"git@github.com:djx314/slickext.git","clone_url":"https://github.com/djx314/slickext.git","svn_url":"https://github.com/djx314/slickext","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"jilen:master","ref":"master","sha":"cab7f3fad6e7a971e188cc3f88c4187bb5845fce","user":{"login":"jilen","id":546573,"avatar_url":"https://avatars.githubusercontent.com/u/546573?v=3","gravatar_id":"","url":"https://api.github.com/users/jilen","html_url":"https://github.com/jilen","followers_url":"https://api.github.com/users/jilen/followers","following_url":"https://api.github.com/users/jilen/following{/other_user}","gists_url":"https://api.github.com/users/jilen/gists{/gist_id}","starred_url":"https://api.github.com/users/jilen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jilen/subscriptions","organizations_url":"https://api.github.com/users/jilen/orgs","repos_url":"https://api.github.com/users/jilen/repos","events_url":"https://api.github.com/users/jilen/events{/privacy}","received_events_url":"https://api.github.com/users/jilen/received_events","type":"User","site_admin":false},"repo":{"id":34493431,"name":"slickext","full_name":"jilen/slickext","owner":{"login":"jilen","id":546573,"avatar_url":"https://avatars.githubusercontent.com/u/546573?v=3","gravatar_id":"","url":"https://api.github.com/users/jilen","html_url":"https://github.com/jilen","followers_url":"https://api.github.com/users/jilen/followers","following_url":"https://api.github.com/users/jilen/following{/other_user}","gists_url":"https://api.github.com/users/jilen/gists{/gist_id}","starred_url":"https://api.github.com/users/jilen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jilen/subscriptions","organizations_url":"https://api.github.com/users/jilen/orgs","repos_url":"https://api.github.com/users/jilen/repos","events_url":"https://api.github.com/users/jilen/events{/privacy}","received_events_url":"https://api.github.com/users/jilen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jilen/slickext","description":"Slick extensions, currently only auto-mapping macros are implemented","fork":false,"url":"https://api.github.com/repos/jilen/slickext","forks_url":"https://api.github.com/repos/jilen/slickext/forks","keys_url":"https://api.github.com/repos/jilen/slickext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jilen/slickext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jilen/slickext/teams","hooks_url":"https://api.github.com/repos/jilen/slickext/hooks","issue_events_url":"https://api.github.com/repos/jilen/slickext/issues/events{/number}","events_url":"https://api.github.com/repos/jilen/slickext/events","assignees_url":"https://api.github.com/repos/jilen/slickext/assignees{/user}","branches_url":"https://api.github.com/repos/jilen/slickext/branches{/branch}","tags_url":"https://api.github.com/repos/jilen/slickext/tags","blobs_url":"https://api.github.com/repos/jilen/slickext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jilen/slickext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jilen/slickext/git/refs{/sha}","trees_url":"https://api.github.com/repos/jilen/slickext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jilen/slickext/statuses/{sha}","languages_url":"https://api.github.com/repos/jilen/slickext/languages","stargazers_url":"https://api.github.com/repos/jilen/slickext/stargazers","contributors_url":"https://api.github.com/repos/jilen/slickext/contributors","subscribers_url":"https://api.github.com/repos/jilen/slickext/subscribers","subscription_url":"https://api.github.com/repos/jilen/slickext/subscription","commits_url":"https://api.github.com/repos/jilen/slickext/commits{/sha}","git_commits_url":"https://api.github.com/repos/jilen/slickext/git/commits{/sha}","comments_url":"https://api.github.com/repos/jilen/slickext/comments{/number}","issue_comment_url":"https://api.github.com/repos/jilen/slickext/issues/comments{/number}","contents_url":"https://api.github.com/repos/jilen/slickext/contents/{+path}","compare_url":"https://api.github.com/repos/jilen/slickext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jilen/slickext/merges","archive_url":"https://api.github.com/repos/jilen/slickext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jilen/slickext/downloads","issues_url":"https://api.github.com/repos/jilen/slickext/issues{/number}","pulls_url":"https://api.github.com/repos/jilen/slickext/pulls{/number}","milestones_url":"https://api.github.com/repos/jilen/slickext/milestones{/number}","notifications_url":"https://api.github.com/repos/jilen/slickext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jilen/slickext/labels{/name}","releases_url":"https://api.github.com/repos/jilen/slickext/releases{/id}","created_at":"2015-04-24T02:27:50Z","updated_at":"2015-04-25T15:10:21Z","pushed_at":"2015-04-25T15:45:37Z","git_url":"git://github.com/jilen/slickext.git","ssh_url":"git@github.com:jilen/slickext.git","clone_url":"https://github.com/jilen/slickext.git","svn_url":"https://github.com/jilen/slickext","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jilen/slickext/pulls/1"},"html":{"href":"https://github.com/jilen/slickext/pull/1"},"issue":{"href":"https://api.github.com/repos/jilen/slickext/issues/1"},"comments":{"href":"https://api.github.com/repos/jilen/slickext/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/jilen/slickext/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/jilen/slickext/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jilen/slickext/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/jilen/slickext/statuses/11c867003ec54b49fce447f2f6e33a438cc9ef25"}}}}