{"action":"created","comment":{"url":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls/comments/230747094","pull_request_review_id":171550015,"id":230747094,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDc0NzA5NA==","diff_hunk":"@@ -35,6 +42,27 @@ public String formularioCadastro(Solicitacao solicitacao, Model model) {\n         return \"solicitacao/cadastro\";\n     }\n \n+    @PostMapping(\"/cadastro\")\n+    public String salvaSolicitacao(Model model, @ModelAttribute(\"solicitacao\") Solicitacao solicitacao) {\n+        solicitacao.getAcompanhantes().forEach(acompanhante -> acompanhante.setSolicitacao(solicitacao));\n+        solicitacao.setCancelamento(false);","path":"app/src/main/java/com/thoughtworks/aceleradora/solicitacao/controller/SolicitacaoController.java","position":30,"original_position":30,"commit_id":"cc04ce8e3a216a2c7b7b84deb46b78851ad8dad9","original_commit_id":"cc04ce8e3a216a2c7b7b84deb46b78851ad8dad9","user":{"login":"ghidorsi","id":15145105,"node_id":"MDQ6VXNlcjE1MTQ1MTA1","avatar_url":"https://avatars3.githubusercontent.com/u/15145105?v=4","gravatar_id":"","url":"https://api.github.com/users/ghidorsi","html_url":"https://github.com/ghidorsi","followers_url":"https://api.github.com/users/ghidorsi/followers","following_url":"https://api.github.com/users/ghidorsi/following{/other_user}","gists_url":"https://api.github.com/users/ghidorsi/gists{/gist_id}","starred_url":"https://api.github.com/users/ghidorsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghidorsi/subscriptions","organizations_url":"https://api.github.com/users/ghidorsi/orgs","repos_url":"https://api.github.com/users/ghidorsi/repos","events_url":"https://api.github.com/users/ghidorsi/events{/privacy}","received_events_url":"https://api.github.com/users/ghidorsi/received_events","type":"User","site_admin":false},"body":"Eu acho que tanto esse dado aqui quando o de baixo deveriam ser `default` quando criasse uma nova solicitação.\r\n\r\nhttps://stackoverflow.com/a/1013520\r\n\r\nOu seja:\r\n\r\n```java\r\n@Column(name=\"cancelamento\")\r\nprivate boolean cancelamento = false;\r\n```\r\n\r\nE na tabela, podemos enforçar isto tambem:\r\n\r\n```sql\r\nALTER TABLE solicitacoes ALTER COLUMN cancelamento SET DEFAULT false;\r\n```","created_at":"2018-11-05T13:25:00Z","updated_at":"2018-11-05T13:39:07Z","html_url":"https://github.com/aceleradora-TW/hospebem/pull/36#discussion_r230747094","pull_request_url":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls/36","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls/comments/230747094"},"html":{"href":"https://github.com/aceleradora-TW/hospebem/pull/36#discussion_r230747094"},"pull_request":{"href":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls/36","id":226939708,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2OTM5NzA4","html_url":"https://github.com/aceleradora-TW/hospebem/pull/36","diff_url":"https://github.com/aceleradora-TW/hospebem/pull/36.diff","patch_url":"https://github.com/aceleradora-TW/hospebem/pull/36.patch","issue_url":"https://api.github.com/repos/aceleradora-TW/hospebem/issues/36","number":36,"state":"open","locked":false,"title":"Gerenciar informacoes do hospede","user":{"login":"cassia11","id":43010445,"node_id":"MDQ6VXNlcjQzMDEwNDQ1","avatar_url":"https://avatars0.githubusercontent.com/u/43010445?v=4","gravatar_id":"","url":"https://api.github.com/users/cassia11","html_url":"https://github.com/cassia11","followers_url":"https://api.github.com/users/cassia11/followers","following_url":"https://api.github.com/users/cassia11/following{/other_user}","gists_url":"https://api.github.com/users/cassia11/gists{/gist_id}","starred_url":"https://api.github.com/users/cassia11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cassia11/subscriptions","organizations_url":"https://api.github.com/users/cassia11/orgs","repos_url":"https://api.github.com/users/cassia11/repos","events_url":"https://api.github.com/users/cassia11/events{/privacy}","received_events_url":"https://api.github.com/users/cassia11/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-30T14:15:39Z","updated_at":"2018-11-05T13:39:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e467a9e8835c7ba8c39b2f27af62feb13af65cd8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls/36/commits","review_comments_url":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls/36/comments","review_comment_url":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aceleradora-TW/hospebem/issues/36/comments","statuses_url":"https://api.github.com/repos/aceleradora-TW/hospebem/statuses/cc04ce8e3a216a2c7b7b84deb46b78851ad8dad9","head":{"label":"aceleradora-TW:gerenciar-informacoes-do-hospede","ref":"gerenciar-informacoes-do-hospede","sha":"cc04ce8e3a216a2c7b7b84deb46b78851ad8dad9","user":{"login":"aceleradora-TW","id":18720656,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NzIwNjU2","avatar_url":"https://avatars0.githubusercontent.com/u/18720656?v=4","gravatar_id":"","url":"https://api.github.com/users/aceleradora-TW","html_url":"https://github.com/aceleradora-TW","followers_url":"https://api.github.com/users/aceleradora-TW/followers","following_url":"https://api.github.com/users/aceleradora-TW/following{/other_user}","gists_url":"https://api.github.com/users/aceleradora-TW/gists{/gist_id}","starred_url":"https://api.github.com/users/aceleradora-TW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceleradora-TW/subscriptions","organizations_url":"https://api.github.com/users/aceleradora-TW/orgs","repos_url":"https://api.github.com/users/aceleradora-TW/repos","events_url":"https://api.github.com/users/aceleradora-TW/events{/privacy}","received_events_url":"https://api.github.com/users/aceleradora-TW/received_events","type":"Organization","site_admin":false},"repo":{"id":151568054,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE1NjgwNTQ=","name":"hospebem","full_name":"aceleradora-TW/hospebem","private":false,"owner":{"login":"aceleradora-TW","id":18720656,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NzIwNjU2","avatar_url":"https://avatars0.githubusercontent.com/u/18720656?v=4","gravatar_id":"","url":"https://api.github.com/users/aceleradora-TW","html_url":"https://github.com/aceleradora-TW","followers_url":"https://api.github.com/users/aceleradora-TW/followers","following_url":"https://api.github.com/users/aceleradora-TW/following{/other_user}","gists_url":"https://api.github.com/users/aceleradora-TW/gists{/gist_id}","starred_url":"https://api.github.com/users/aceleradora-TW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceleradora-TW/subscriptions","organizations_url":"https://api.github.com/users/aceleradora-TW/orgs","repos_url":"https://api.github.com/users/aceleradora-TW/repos","events_url":"https://api.github.com/users/aceleradora-TW/events{/privacy}","received_events_url":"https://api.github.com/users/aceleradora-TW/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/aceleradora-TW/hospebem","description":null,"fork":false,"url":"https://api.github.com/repos/aceleradora-TW/hospebem","forks_url":"https://api.github.com/repos/aceleradora-TW/hospebem/forks","keys_url":"https://api.github.com/repos/aceleradora-TW/hospebem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aceleradora-TW/hospebem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aceleradora-TW/hospebem/teams","hooks_url":"https://api.github.com/repos/aceleradora-TW/hospebem/hooks","issue_events_url":"https://api.github.com/repos/aceleradora-TW/hospebem/issues/events{/number}","events_url":"https://api.github.com/repos/aceleradora-TW/hospebem/events","assignees_url":"https://api.github.com/repos/aceleradora-TW/hospebem/assignees{/user}","branches_url":"https://api.github.com/repos/aceleradora-TW/hospebem/branches{/branch}","tags_url":"https://api.github.com/repos/aceleradora-TW/hospebem/tags","blobs_url":"https://api.github.com/repos/aceleradora-TW/hospebem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aceleradora-TW/hospebem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aceleradora-TW/hospebem/git/refs{/sha}","trees_url":"https://api.github.com/repos/aceleradora-TW/hospebem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aceleradora-TW/hospebem/statuses/{sha}","languages_url":"https://api.github.com/repos/aceleradora-TW/hospebem/languages","stargazers_url":"https://api.github.com/repos/aceleradora-TW/hospebem/stargazers","contributors_url":"https://api.github.com/repos/aceleradora-TW/hospebem/contributors","subscribers_url":"https://api.github.com/repos/aceleradora-TW/hospebem/subscribers","subscription_url":"https://api.github.com/repos/aceleradora-TW/hospebem/subscription","commits_url":"https://api.github.com/repos/aceleradora-TW/hospebem/commits{/sha}","git_commits_url":"https://api.github.com/repos/aceleradora-TW/hospebem/git/commits{/sha}","comments_url":"https://api.github.com/repos/aceleradora-TW/hospebem/comments{/number}","issue_comment_url":"https://api.github.com/repos/aceleradora-TW/hospebem/issues/comments{/number}","contents_url":"https://api.github.com/repos/aceleradora-TW/hospebem/contents/{+path}","compare_url":"https://api.github.com/repos/aceleradora-TW/hospebem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aceleradora-TW/hospebem/merges","archive_url":"https://api.github.com/repos/aceleradora-TW/hospebem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aceleradora-TW/hospebem/downloads","issues_url":"https://api.github.com/repos/aceleradora-TW/hospebem/issues{/number}","pulls_url":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls{/number}","milestones_url":"https://api.github.com/repos/aceleradora-TW/hospebem/milestones{/number}","notifications_url":"https://api.github.com/repos/aceleradora-TW/hospebem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aceleradora-TW/hospebem/labels{/name}","releases_url":"https://api.github.com/repos/aceleradora-TW/hospebem/releases{/id}","deployments_url":"https://api.github.com/repos/aceleradora-TW/hospebem/deployments","created_at":"2018-10-04T12:28:26Z","updated_at":"2018-11-01T15:55:48Z","pushed_at":"2018-11-05T12:13:19Z","git_url":"git://github.com/aceleradora-TW/hospebem.git","ssh_url":"git@github.com:aceleradora-TW/hospebem.git","clone_url":"https://github.com/aceleradora-TW/hospebem.git","svn_url":"https://github.com/aceleradora-TW/hospebem","homepage":null,"size":362,"stargazers_count":5,"watchers_count":5,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":19,"license":null,"forks":0,"open_issues":19,"watchers":5,"default_branch":"master"}},"base":{"label":"aceleradora-TW:master","ref":"master","sha":"9718502c6ab4d5151bcf6cb7642a11480493218f","user":{"login":"aceleradora-TW","id":18720656,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NzIwNjU2","avatar_url":"https://avatars0.githubusercontent.com/u/18720656?v=4","gravatar_id":"","url":"https://api.github.com/users/aceleradora-TW","html_url":"https://github.com/aceleradora-TW","followers_url":"https://api.github.com/users/aceleradora-TW/followers","following_url":"https://api.github.com/users/aceleradora-TW/following{/other_user}","gists_url":"https://api.github.com/users/aceleradora-TW/gists{/gist_id}","starred_url":"https://api.github.com/users/aceleradora-TW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceleradora-TW/subscriptions","organizations_url":"https://api.github.com/users/aceleradora-TW/orgs","repos_url":"https://api.github.com/users/aceleradora-TW/repos","events_url":"https://api.github.com/users/aceleradora-TW/events{/privacy}","received_events_url":"https://api.github.com/users/aceleradora-TW/received_events","type":"Organization","site_admin":false},"repo":{"id":151568054,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE1NjgwNTQ=","name":"hospebem","full_name":"aceleradora-TW/hospebem","private":false,"owner":{"login":"aceleradora-TW","id":18720656,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NzIwNjU2","avatar_url":"https://avatars0.githubusercontent.com/u/18720656?v=4","gravatar_id":"","url":"https://api.github.com/users/aceleradora-TW","html_url":"https://github.com/aceleradora-TW","followers_url":"https://api.github.com/users/aceleradora-TW/followers","following_url":"https://api.github.com/users/aceleradora-TW/following{/other_user}","gists_url":"https://api.github.com/users/aceleradora-TW/gists{/gist_id}","starred_url":"https://api.github.com/users/aceleradora-TW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceleradora-TW/subscriptions","organizations_url":"https://api.github.com/users/aceleradora-TW/orgs","repos_url":"https://api.github.com/users/aceleradora-TW/repos","events_url":"https://api.github.com/users/aceleradora-TW/events{/privacy}","received_events_url":"https://api.github.com/users/aceleradora-TW/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/aceleradora-TW/hospebem","description":null,"fork":false,"url":"https://api.github.com/repos/aceleradora-TW/hospebem","forks_url":"https://api.github.com/repos/aceleradora-TW/hospebem/forks","keys_url":"https://api.github.com/repos/aceleradora-TW/hospebem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aceleradora-TW/hospebem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aceleradora-TW/hospebem/teams","hooks_url":"https://api.github.com/repos/aceleradora-TW/hospebem/hooks","issue_events_url":"https://api.github.com/repos/aceleradora-TW/hospebem/issues/events{/number}","events_url":"https://api.github.com/repos/aceleradora-TW/hospebem/events","assignees_url":"https://api.github.com/repos/aceleradora-TW/hospebem/assignees{/user}","branches_url":"https://api.github.com/repos/aceleradora-TW/hospebem/branches{/branch}","tags_url":"https://api.github.com/repos/aceleradora-TW/hospebem/tags","blobs_url":"https://api.github.com/repos/aceleradora-TW/hospebem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aceleradora-TW/hospebem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aceleradora-TW/hospebem/git/refs{/sha}","trees_url":"https://api.github.com/repos/aceleradora-TW/hospebem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aceleradora-TW/hospebem/statuses/{sha}","languages_url":"https://api.github.com/repos/aceleradora-TW/hospebem/languages","stargazers_url":"https://api.github.com/repos/aceleradora-TW/hospebem/stargazers","contributors_url":"https://api.github.com/repos/aceleradora-TW/hospebem/contributors","subscribers_url":"https://api.github.com/repos/aceleradora-TW/hospebem/subscribers","subscription_url":"https://api.github.com/repos/aceleradora-TW/hospebem/subscription","commits_url":"https://api.github.com/repos/aceleradora-TW/hospebem/commits{/sha}","git_commits_url":"https://api.github.com/repos/aceleradora-TW/hospebem/git/commits{/sha}","comments_url":"https://api.github.com/repos/aceleradora-TW/hospebem/comments{/number}","issue_comment_url":"https://api.github.com/repos/aceleradora-TW/hospebem/issues/comments{/number}","contents_url":"https://api.github.com/repos/aceleradora-TW/hospebem/contents/{+path}","compare_url":"https://api.github.com/repos/aceleradora-TW/hospebem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aceleradora-TW/hospebem/merges","archive_url":"https://api.github.com/repos/aceleradora-TW/hospebem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aceleradora-TW/hospebem/downloads","issues_url":"https://api.github.com/repos/aceleradora-TW/hospebem/issues{/number}","pulls_url":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls{/number}","milestones_url":"https://api.github.com/repos/aceleradora-TW/hospebem/milestones{/number}","notifications_url":"https://api.github.com/repos/aceleradora-TW/hospebem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aceleradora-TW/hospebem/labels{/name}","releases_url":"https://api.github.com/repos/aceleradora-TW/hospebem/releases{/id}","deployments_url":"https://api.github.com/repos/aceleradora-TW/hospebem/deployments","created_at":"2018-10-04T12:28:26Z","updated_at":"2018-11-01T15:55:48Z","pushed_at":"2018-11-05T12:13:19Z","git_url":"git://github.com/aceleradora-TW/hospebem.git","ssh_url":"git@github.com:aceleradora-TW/hospebem.git","clone_url":"https://github.com/aceleradora-TW/hospebem.git","svn_url":"https://github.com/aceleradora-TW/hospebem","homepage":null,"size":362,"stargazers_count":5,"watchers_count":5,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":19,"license":null,"forks":0,"open_issues":19,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls/36"},"html":{"href":"https://github.com/aceleradora-TW/hospebem/pull/36"},"issue":{"href":"https://api.github.com/repos/aceleradora-TW/hospebem/issues/36"},"comments":{"href":"https://api.github.com/repos/aceleradora-TW/hospebem/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aceleradora-TW/hospebem/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/aceleradora-TW/hospebem/statuses/cc04ce8e3a216a2c7b7b84deb46b78851ad8dad9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ghidorsi"}}