GitHub PullRequestReviewCommentEvent at 2014-08-30 18:52:23
Repository: vraptor4
Actor: Turini
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/caelum/vraptor4/pulls/comments/16931074","id":16931074,"diff_hunk":"@@ -299,6 +299,46 @@\n \n To configure the JSON serialization you can create a class that extends `GsonJSONSerialization` and overwrite the method `getSerializer()`.\n \n+\n+When serialiazing to JSON you can use the annotation 'SkipSerialization' to omit the serialization of a field or class.\n+\n+~~~ \n+#!java\n+@SkipSerialization\n+public class UserPrivateInfo {\n+\tString document;\n+\tString phone;\n+\tString address;\n+}\n+\n+public class User {","path":"vraptor-site/content/en/docs/view-and-ajax.html","position":16,"original_position":16,"commit_id":"16b87677265422e2d29a244fd7ef8be623d6e9f9","original_commit_id":"16b87677265422e2d29a244fd7ef8be623d6e9f9","user":{"login":"Turini","id":1529021,"avatar_url":"https://avatars.githubusercontent.com/u/1529021?v=2","gravatar_id":"8757ffa706118c797421d81fdf2603e8","url":"https://api.github.com/users/Turini","html_url":"https://github.com/Turini","followers_url":"https://api.github.com/users/Turini/followers","following_url":"https://api.github.com/users/Turini/following{/other_user}","gists_url":"https://api.github.com/users/Turini/gists{/gist_id}","starred_url":"https://api.github.com/users/Turini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Turini/subscriptions","organizations_url":"https://api.github.com/users/Turini/orgs","repos_url":"https://api.github.com/users/Turini/repos","events_url":"https://api.github.com/users/Turini/events{/privacy}","received_events_url":"https://api.github.com/users/Turini/received_events","type":"User","site_admin":false},"body":"same here, you can add a simple text to make it clear:\r\n\"Or you can omit only some specific field, just like this:\" ","created_at":"2014-08-30T18:52:23Z","updated_at":"2014-08-30T18:52:23Z","html_url":"https://github.com/caelum/vraptor4/pull/763#discussion_r16931074","pull_request_url":"https://api.github.com/repos/caelum/vraptor4/pulls/763","_links":{"self":{"href":"https://api.github.com/repos/caelum/vraptor4/pulls/comments/16931074"},"html":{"href":"https://github.com/caelum/vraptor4/pull/763#discussion_r16931074"},"pull_request":{"href":"https://api.github.com/repos/caelum/vraptor4/pulls/763"}}},"pull_request":{"url":"https://api.github.com/repos/caelum/vraptor4/pulls/763","id":20355654,"html_url":"https://github.com/caelum/vraptor4/pull/763","diff_url":"https://github.com/caelum/vraptor4/pull/763.diff","patch_url":"https://github.com/caelum/vraptor4/pull/763.patch","issue_url":"https://api.github.com/repos/caelum/vraptor4/issues/763","number":763,"state":"open","locked":false,"title":"Creating new annotation to exclude beans fields and classes from the GSON Serialization","user":{"login":"renatorroliveira","id":6683239,"avatar_url":"https://avatars.githubusercontent.com/u/6683239?v=2","gravatar_id":"71734d34872b1596b1265f07a7ef60ab","url":"https://api.github.com/users/renatorroliveira","html_url":"https://github.com/renatorroliveira","followers_url":"https://api.github.com/users/renatorroliveira/followers","following_url":"https://api.github.com/users/renatorroliveira/following{/other_user}","gists_url":"https://api.github.com/users/renatorroliveira/gists{/gist_id}","starred_url":"https://api.github.com/users/renatorroliveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renatorroliveira/subscriptions","organizations_url":"https://api.github.com/users/renatorroliveira/orgs","repos_url":"https://api.github.com/users/renatorroliveira/repos","events_url":"https://api.github.com/users/renatorroliveira/events{/privacy}","received_events_url":"https://api.github.com/users/renatorroliveira/received_events","type":"User","site_admin":false},"body":"This is a feature that is extremely desirable.\r\nCreating an annotation (@GsonOmitField) that marks a field or a class to be skipped at the JSON serialization reduces a lot the duplication of exclude() calls in some cases.\r\nImagine a User model where are some private information like password and phone number stored.\r\nToday you have to add a .exclude() call for those fields every time you want to serialize a user object.\r\nWith this feature, you just annotate those fields with @GsonOmitField and the job is done, you don't need to worry about those informations ending up at the client side.\r\n\r\nIt is a very simple implementation and adds a wonderful feature.","created_at":"2014-08-27T06:55:21Z","updated_at":"2014-08-30T18:52:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33d63a22ba9adab1f47b734a3fb46988c779bb3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/caelum/vraptor4/pulls/763/commits","review_comments_url":"https://api.github.com/repos/caelum/vraptor4/pulls/763/comments","review_comment_url":"https://api.github.com/repos/caelum/vraptor4/pulls/comments/{number}","comments_url":"https://api.github.com/repos/caelum/vraptor4/issues/763/comments","statuses_url":"https://api.github.com/repos/caelum/vraptor4/statuses/16b87677265422e2d29a244fd7ef8be623d6e9f9","head":{"label":"progolden:master","ref":"master","sha":"16b87677265422e2d29a244fd7ef8be623d6e9f9","user":{"login":"progolden","id":6683278,"avatar_url":"https://avatars.githubusercontent.com/u/6683278?v=2","gravatar_id":"43609005d602e2af5be7ba6088505a54","url":"https://api.github.com/users/progolden","html_url":"https://github.com/progolden","followers_url":"https://api.github.com/users/progolden/followers","following_url":"https://api.github.com/users/progolden/following{/other_user}","gists_url":"https://api.github.com/users/progolden/gists{/gist_id}","starred_url":"https://api.github.com/users/progolden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progolden/subscriptions","organizations_url":"https://api.github.com/users/progolden/orgs","repos_url":"https://api.github.com/users/progolden/repos","events_url":"https://api.github.com/users/progolden/events{/privacy}","received_events_url":"https://api.github.com/users/progolden/received_events","type":"Organization","site_admin":false},"repo":{"id":19589529,"name":"vraptor4","full_name":"progolden/vraptor4","owner":{"login":"progolden","id":6683278,"avatar_url":"https://avatars.githubusercontent.com/u/6683278?v=2","gravatar_id":"43609005d602e2af5be7ba6088505a54","url":"https://api.github.com/users/progolden","html_url":"https://github.com/progolden","followers_url":"https://api.github.com/users/progolden/followers","following_url":"https://api.github.com/users/progolden/following{/other_user}","gists_url":"https://api.github.com/users/progolden/gists{/gist_id}","starred_url":"https://api.github.com/users/progolden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progolden/subscriptions","organizations_url":"https://api.github.com/users/progolden/orgs","repos_url":"https://api.github.com/users/progolden/repos","events_url":"https://api.github.com/users/progolden/events{/privacy}","received_events_url":"https://api.github.com/users/progolden/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/progolden/vraptor4","description":"A Java web MVC action-based framework","fork":true,"url":"https://api.github.com/repos/progolden/vraptor4","forks_url":"https://api.github.com/repos/progolden/vraptor4/forks","keys_url":"https://api.github.com/repos/progolden/vraptor4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/progolden/vraptor4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/progolden/vraptor4/teams","hooks_url":"https://api.github.com/repos/progolden/vraptor4/hooks","issue_events_url":"https://api.github.com/repos/progolden/vraptor4/issues/events{/number}","events_url":"https://api.github.com/repos/progolden/vraptor4/events","assignees_url":"https://api.github.com/repos/progolden/vraptor4/assignees{/user}","branches_url":"https://api.github.com/repos/progolden/vraptor4/branches{/branch}","tags_url":"https://api.github.com/repos/progolden/vraptor4/tags","blobs_url":"https://api.github.com/repos/progolden/vraptor4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/progolden/vraptor4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/progolden/vraptor4/git/refs{/sha}","trees_url":"https://api.github.com/repos/progolden/vraptor4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/progolden/vraptor4/statuses/{sha}","languages_url":"https://api.github.com/repos/progolden/vraptor4/languages","stargazers_url":"https://api.github.com/repos/progolden/vraptor4/stargazers","contributors_url":"https://api.github.com/repos/progolden/vraptor4/contributors","subscribers_url":"https://api.github.com/repos/progolden/vraptor4/subscribers","subscription_url":"https://api.github.com/repos/progolden/vraptor4/subscription","commits_url":"https://api.github.com/repos/progolden/vraptor4/commits{/sha}","git_commits_url":"https://api.github.com/repos/progolden/vraptor4/git/commits{/sha}","comments_url":"https://api.github.com/repos/progolden/vraptor4/comments{/number}","issue_comment_url":"https://api.github.com/repos/progolden/vraptor4/issues/comments/{number}","contents_url":"https://api.github.com/repos/progolden/vraptor4/contents/{+path}","compare_url":"https://api.github.com/repos/progolden/vraptor4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/progolden/vraptor4/merges","archive_url":"https://api.github.com/repos/progolden/vraptor4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/progolden/vraptor4/downloads","issues_url":"https://api.github.com/repos/progolden/vraptor4/issues{/number}","pulls_url":"https://api.github.com/repos/progolden/vraptor4/pulls{/number}","milestones_url":"https://api.github.com/repos/progolden/vraptor4/milestones{/number}","notifications_url":"https://api.github.com/repos/progolden/vraptor4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/progolden/vraptor4/labels{/name}","releases_url":"https://api.github.com/repos/progolden/vraptor4/releases{/id}","created_at":"2014-05-08T21:27:29Z","updated_at":"2014-08-27T06:48:15Z","pushed_at":"2014-08-28T13:00:26Z","git_url":"git://github.com/progolden/vraptor4.git","ssh_url":"git@github.com:progolden/vraptor4.git","clone_url":"https://github.com/progolden/vraptor4.git","svn_url":"https://github.com/progolden/vraptor4","homepage":"vraptor.org","size":11666,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"caelum:master","ref":"master","sha":"713b704a21a0a966442243ab372c6f65baf0348e","user":{"login":"caelum","id":65012,"avatar_url":"https://avatars.githubusercontent.com/u/65012?v=2","gravatar_id":"89f2c16e318c3b2068c9d37c46a83989","url":"https://api.github.com/users/caelum","html_url":"https://github.com/caelum","followers_url":"https://api.github.com/users/caelum/followers","following_url":"https://api.github.com/users/caelum/following{/other_user}","gists_url":"https://api.github.com/users/caelum/gists{/gist_id}","starred_url":"https://api.github.com/users/caelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caelum/subscriptions","organizations_url":"https://api.github.com/users/caelum/orgs","repos_url":"https://api.github.com/users/caelum/repos","events_url":"https://api.github.com/users/caelum/events{/privacy}","received_events_url":"https://api.github.com/users/caelum/received_events","type":"Organization","site_admin":false},"repo":{"id":9821876,"name":"vraptor4","full_name":"caelum/vraptor4","owner":{"login":"caelum","id":65012,"avatar_url":"https://avatars.githubusercontent.com/u/65012?v=2","gravatar_id":"89f2c16e318c3b2068c9d37c46a83989","url":"https://api.github.com/users/caelum","html_url":"https://github.com/caelum","followers_url":"https://api.github.com/users/caelum/followers","following_url":"https://api.github.com/users/caelum/following{/other_user}","gists_url":"https://api.github.com/users/caelum/gists{/gist_id}","starred_url":"https://api.github.com/users/caelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caelum/subscriptions","organizations_url":"https://api.github.com/users/caelum/orgs","repos_url":"https://api.github.com/users/caelum/repos","events_url":"https://api.github.com/users/caelum/events{/privacy}","received_events_url":"https://api.github.com/users/caelum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/caelum/vraptor4","description":"A Java web MVC action-based framework","fork":false,"url":"https://api.github.com/repos/caelum/vraptor4","forks_url":"https://api.github.com/repos/caelum/vraptor4/forks","keys_url":"https://api.github.com/repos/caelum/vraptor4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caelum/vraptor4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caelum/vraptor4/teams","hooks_url":"https://api.github.com/repos/caelum/vraptor4/hooks","issue_events_url":"https://api.github.com/repos/caelum/vraptor4/issues/events{/number}","events_url":"https://api.github.com/repos/caelum/vraptor4/events","assignees_url":"https://api.github.com/repos/caelum/vraptor4/assignees{/user}","branches_url":"https://api.github.com/repos/caelum/vraptor4/branches{/branch}","tags_url":"https://api.github.com/repos/caelum/vraptor4/tags","blobs_url":"https://api.github.com/repos/caelum/vraptor4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caelum/vraptor4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caelum/vraptor4/git/refs{/sha}","trees_url":"https://api.github.com/repos/caelum/vraptor4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caelum/vraptor4/statuses/{sha}","languages_url":"https://api.github.com/repos/caelum/vraptor4/languages","stargazers_url":"https://api.github.com/repos/caelum/vraptor4/stargazers","contributors_url":"https://api.github.com/repos/caelum/vraptor4/contributors","subscribers_url":"https://api.github.com/repos/caelum/vraptor4/subscribers","subscription_url":"https://api.github.com/repos/caelum/vraptor4/subscription","commits_url":"https://api.github.com/repos/caelum/vraptor4/commits{/sha}","git_commits_url":"https://api.github.com/repos/caelum/vraptor4/git/commits{/sha}","comments_url":"https://api.github.com/repos/caelum/vraptor4/comments{/number}","issue_comment_url":"https://api.github.com/repos/caelum/vraptor4/issues/comments/{number}","contents_url":"https://api.github.com/repos/caelum/vraptor4/contents/{+path}","compare_url":"https://api.github.com/repos/caelum/vraptor4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caelum/vraptor4/merges","archive_url":"https://api.github.com/repos/caelum/vraptor4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caelum/vraptor4/downloads","issues_url":"https://api.github.com/repos/caelum/vraptor4/issues{/number}","pulls_url":"https://api.github.com/repos/caelum/vraptor4/pulls{/number}","milestones_url":"https://api.github.com/repos/caelum/vraptor4/milestones{/number}","notifications_url":"https://api.github.com/repos/caelum/vraptor4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caelum/vraptor4/labels{/name}","releases_url":"https://api.github.com/repos/caelum/vraptor4/releases{/id}","created_at":"2013-05-02T20:22:14Z","updated_at":"2014-08-29T18:29:42Z","pushed_at":"2014-08-30T18:42:49Z","git_url":"git://github.com/caelum/vraptor4.git","ssh_url":"git@github.com:caelum/vraptor4.git","clone_url":"https://github.com/caelum/vraptor4.git","svn_url":"https://github.com/caelum/vraptor4","homepage":"vraptor.org","size":33642,"stargazers_count":125,"watchers_count":125,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":87,"mirror_url":null,"open_issues_count":27,"forks":87,"open_issues":27,"watchers":125,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/caelum/vraptor4/pulls/763"},"html":{"href":"https://github.com/caelum/vraptor4/pull/763"},"issue":{"href":"https://api.github.com/repos/caelum/vraptor4/issues/763"},"comments":{"href":"https://api.github.com/repos/caelum/vraptor4/issues/763/comments"},"review_comments":{"href":"https://api.github.com/repos/caelum/vraptor4/pulls/763/comments"},"review_comment":{"href":"https://api.github.com/repos/caelum/vraptor4/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/caelum/vraptor4/pulls/763/commits"},"statuses":{"href":"https://api.github.com/repos/caelum/vraptor4/statuses/16b87677265422e2d29a244fd7ef8be623d6e9f9"}}}}