{"action":"created","comment":{"url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/comments/26204523","id":26204523,"diff_hunk":"@@ -0,0 +1,15 @@\n+package data;\r\n+\r\n+import java.util.List;\r\n+\r\n+import models.Course;\r\n+\r\n+import org.springframework.data.mongodb.repository.MongoRepository;\r\n+import org.springframework.data.mongodb.repository.Query;\r\n+\r\n+public interface CourseDao extends MongoRepository<Course, Long> {\r\n+\r\n+\t@Query(value = \"{ $and [ { teacherAssigned.idTeacher: ?0 }, { courseName :?0 }}\")\r","path":"TOPIC8-MONGODB/src/main/java/data/CourseDao.java","position":12,"original_position":12,"commit_id":"96400dce1db3150192aa31aa835d031ffe4ced00","original_commit_id":"96400dce1db3150192aa31aa835d031ffe4ced00","user":{"login":"amilcar-infante","id":2864223,"avatar_url":"https://avatars.githubusercontent.com/u/2864223?v=3","gravatar_id":"","url":"https://api.github.com/users/amilcar-infante","html_url":"https://github.com/amilcar-infante","followers_url":"https://api.github.com/users/amilcar-infante/followers","following_url":"https://api.github.com/users/amilcar-infante/following{/other_user}","gists_url":"https://api.github.com/users/amilcar-infante/gists{/gist_id}","starred_url":"https://api.github.com/users/amilcar-infante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amilcar-infante/subscriptions","organizations_url":"https://api.github.com/users/amilcar-infante/orgs","repos_url":"https://api.github.com/users/amilcar-infante/repos","events_url":"https://api.github.com/users/amilcar-infante/events{/privacy}","received_events_url":"https://api.github.com/users/amilcar-infante/received_events","type":"User","site_admin":false},"body":"Please Matias could you explain this query? \r\nLook this link http://docs.spring.io/spring-data/data-mongo/docs/1.4.0.RC1/reference/html/mongo.repositories.html which says that \"Most of the data access operations you usually trigger on a repository result a query being executed against the MongoDB databases. Defining such a query is just a matter of declaring a method on the repository interface\"","created_at":"2015-03-11T11:29:01Z","updated_at":"2015-03-11T11:29:01Z","html_url":"https://github.com/lucast-globant/java-bootcamp-bahia/pull/121#discussion_r26204523","pull_request_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/121","_links":{"self":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/comments/26204523"},"html":{"href":"https://github.com/lucast-globant/java-bootcamp-bahia/pull/121#discussion_r26204523"},"pull_request":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/121","id":30728150,"html_url":"https://github.com/lucast-globant/java-bootcamp-bahia/pull/121","diff_url":"https://github.com/lucast-globant/java-bootcamp-bahia/pull/121.diff","patch_url":"https://github.com/lucast-globant/java-bootcamp-bahia/pull/121.patch","issue_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues/121","number":121,"state":"open","locked":false,"title":"Topic8","user":{"login":"matihaure","id":10730515,"avatar_url":"https://avatars.githubusercontent.com/u/10730515?v=3","gravatar_id":"","url":"https://api.github.com/users/matihaure","html_url":"https://github.com/matihaure","followers_url":"https://api.github.com/users/matihaure/followers","following_url":"https://api.github.com/users/matihaure/following{/other_user}","gists_url":"https://api.github.com/users/matihaure/gists{/gist_id}","starred_url":"https://api.github.com/users/matihaure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matihaure/subscriptions","organizations_url":"https://api.github.com/users/matihaure/orgs","repos_url":"https://api.github.com/users/matihaure/repos","events_url":"https://api.github.com/users/matihaure/events{/privacy}","received_events_url":"https://api.github.com/users/matihaure/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-08T22:34:39Z","updated_at":"2015-03-11T11:29:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"899186ff00c57d739314b554acbcab96889a73dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/121/commits","review_comments_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/121/comments","review_comment_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues/121/comments","statuses_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/statuses/96400dce1db3150192aa31aa835d031ffe4ced00","head":{"label":"matihaure:TOPIC8","ref":"TOPIC8","sha":"96400dce1db3150192aa31aa835d031ffe4ced00","user":{"login":"matihaure","id":10730515,"avatar_url":"https://avatars.githubusercontent.com/u/10730515?v=3","gravatar_id":"","url":"https://api.github.com/users/matihaure","html_url":"https://github.com/matihaure","followers_url":"https://api.github.com/users/matihaure/followers","following_url":"https://api.github.com/users/matihaure/following{/other_user}","gists_url":"https://api.github.com/users/matihaure/gists{/gist_id}","starred_url":"https://api.github.com/users/matihaure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matihaure/subscriptions","organizations_url":"https://api.github.com/users/matihaure/orgs","repos_url":"https://api.github.com/users/matihaure/repos","events_url":"https://api.github.com/users/matihaure/events{/privacy}","received_events_url":"https://api.github.com/users/matihaure/received_events","type":"User","site_admin":false},"repo":{"id":30562848,"name":"java-bootcamp-bahia","full_name":"matihaure/java-bootcamp-bahia","owner":{"login":"matihaure","id":10730515,"avatar_url":"https://avatars.githubusercontent.com/u/10730515?v=3","gravatar_id":"","url":"https://api.github.com/users/matihaure","html_url":"https://github.com/matihaure","followers_url":"https://api.github.com/users/matihaure/followers","following_url":"https://api.github.com/users/matihaure/following{/other_user}","gists_url":"https://api.github.com/users/matihaure/gists{/gist_id}","starred_url":"https://api.github.com/users/matihaure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matihaure/subscriptions","organizations_url":"https://api.github.com/users/matihaure/orgs","repos_url":"https://api.github.com/users/matihaure/repos","events_url":"https://api.github.com/users/matihaure/events{/privacy}","received_events_url":"https://api.github.com/users/matihaure/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matihaure/java-bootcamp-bahia","description":"Java Bootcamp","fork":true,"url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia","forks_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/forks","keys_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/teams","hooks_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/hooks","issue_events_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/issues/events{/number}","events_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/events","assignees_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/assignees{/user}","branches_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/branches{/branch}","tags_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/tags","blobs_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/git/refs{/sha}","trees_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/statuses/{sha}","languages_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/languages","stargazers_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/stargazers","contributors_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/contributors","subscribers_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/subscribers","subscription_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/subscription","commits_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/commits{/sha}","git_commits_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/git/commits{/sha}","comments_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/comments{/number}","issue_comment_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/issues/comments{/number}","contents_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/contents/{+path}","compare_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/merges","archive_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/downloads","issues_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/issues{/number}","pulls_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/pulls{/number}","milestones_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/milestones{/number}","notifications_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/labels{/name}","releases_url":"https://api.github.com/repos/matihaure/java-bootcamp-bahia/releases{/id}","created_at":"2015-02-09T22:45:06Z","updated_at":"2015-02-09T20:25:56Z","pushed_at":"2015-03-08T23:12:45Z","git_url":"git://github.com/matihaure/java-bootcamp-bahia.git","ssh_url":"git@github.com:matihaure/java-bootcamp-bahia.git","clone_url":"https://github.com/matihaure/java-bootcamp-bahia.git","svn_url":"https://github.com/matihaure/java-bootcamp-bahia","homepage":null,"size":381,"stargazers_count":0,"watchers_count":0,"language":null,"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":"lucast-globant:master","ref":"master","sha":"948b30a6e222dbba3e817efbcae98c4812a40b15","user":{"login":"lucast-globant","id":10869512,"avatar_url":"https://avatars.githubusercontent.com/u/10869512?v=3","gravatar_id":"","url":"https://api.github.com/users/lucast-globant","html_url":"https://github.com/lucast-globant","followers_url":"https://api.github.com/users/lucast-globant/followers","following_url":"https://api.github.com/users/lucast-globant/following{/other_user}","gists_url":"https://api.github.com/users/lucast-globant/gists{/gist_id}","starred_url":"https://api.github.com/users/lucast-globant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucast-globant/subscriptions","organizations_url":"https://api.github.com/users/lucast-globant/orgs","repos_url":"https://api.github.com/users/lucast-globant/repos","events_url":"https://api.github.com/users/lucast-globant/events{/privacy}","received_events_url":"https://api.github.com/users/lucast-globant/received_events","type":"User","site_admin":false},"repo":{"id":30368310,"name":"java-bootcamp-bahia","full_name":"lucast-globant/java-bootcamp-bahia","owner":{"login":"lucast-globant","id":10869512,"avatar_url":"https://avatars.githubusercontent.com/u/10869512?v=3","gravatar_id":"","url":"https://api.github.com/users/lucast-globant","html_url":"https://github.com/lucast-globant","followers_url":"https://api.github.com/users/lucast-globant/followers","following_url":"https://api.github.com/users/lucast-globant/following{/other_user}","gists_url":"https://api.github.com/users/lucast-globant/gists{/gist_id}","starred_url":"https://api.github.com/users/lucast-globant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucast-globant/subscriptions","organizations_url":"https://api.github.com/users/lucast-globant/orgs","repos_url":"https://api.github.com/users/lucast-globant/repos","events_url":"https://api.github.com/users/lucast-globant/events{/privacy}","received_events_url":"https://api.github.com/users/lucast-globant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lucast-globant/java-bootcamp-bahia","description":"Java Bootcamp","fork":true,"url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia","forks_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/forks","keys_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/teams","hooks_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/hooks","issue_events_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues/events{/number}","events_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/events","assignees_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/assignees{/user}","branches_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/branches{/branch}","tags_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/tags","blobs_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/git/refs{/sha}","trees_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/statuses/{sha}","languages_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/languages","stargazers_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/stargazers","contributors_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/contributors","subscribers_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/subscribers","subscription_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/subscription","commits_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/commits{/sha}","git_commits_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/git/commits{/sha}","comments_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/comments{/number}","issue_comment_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues/comments{/number}","contents_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/contents/{+path}","compare_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/merges","archive_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/downloads","issues_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues{/number}","pulls_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls{/number}","milestones_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/milestones{/number}","notifications_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/labels{/name}","releases_url":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/releases{/id}","created_at":"2015-02-05T17:27:42Z","updated_at":"2015-03-02T13:03:22Z","pushed_at":"2015-02-10T13:31:28Z","git_url":"git://github.com/lucast-globant/java-bootcamp-bahia.git","ssh_url":"git@github.com:lucast-globant/java-bootcamp-bahia.git","clone_url":"https://github.com/lucast-globant/java-bootcamp-bahia.git","svn_url":"https://github.com/lucast-globant/java-bootcamp-bahia","homepage":null,"size":278,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":36,"forks":15,"open_issues":36,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/121"},"html":{"href":"https://github.com/lucast-globant/java-bootcamp-bahia/pull/121"},"issue":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues/121"},"comments":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/lucast-globant/java-bootcamp-bahia/statuses/96400dce1db3150192aa31aa835d031ffe4ced00"}}}}