{"action":"created","comment":{"url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls/comments/240786483","pull_request_review_id":183897560,"id":240786483,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDc4NjQ4Mw==","diff_hunk":"@@ -0,0 +1,93 @@\n+package com.revature.models;\n+\n+import javax.persistence.Column;\n+import javax.persistence.Entity;\n+import javax.persistence.GeneratedValue;\n+import javax.persistence.GenerationType;\n+import javax.persistence.Id;\n+import javax.persistence.JoinColumn;\n+import javax.persistence.ManyToOne;\n+import javax.persistence.Table;\n+import javax.validation.constraints.NotNull;\n+\n+import com.fasterxml.jackson.annotation.JsonIgnore;\n+\n+@Entity\n+@Table(name=\"buildings\")\n+public class Building {\n+\t@Id\n+\t@GeneratedValue(strategy=GenerationType.IDENTITY)\n+\tprivate int id;\n+\t@NotNull\n+\t@Column(nullable=false)\n+\tprivate String name;\n+\t@JsonIgnore\n+\t@ManyToOne\n+\t@JoinColumn(name=\"campus_id\", nullable=false)\n+\tprivate Campus campus;\n+\tpublic int getId() {\n+\t\treturn id;\n+\t}\n+\tpublic void setId(int id) {\n+\t\tthis.id = id;\n+\t}\n+\tpublic String getName() {\n+\t\treturn name;\n+\t}\n+\tpublic void setName(String name) {\n+\t\tthis.name = name;\n+\t}\n+\tpublic Campus getCampus() {\n+\t\treturn campus;\n+\t}\n+\tpublic void setCampus(Campus campus) {\n+\t\tthis.campus = campus;\n+\t}\n+\t@Override\n+\tpublic int hashCode() {\n+\t\tfinal int prime = 31;\n+\t\tint result = 1;\n+\t\tresult = prime * result + ((campus == null) ? 0 : campus.hashCode());\n+\t\tresult = prime * result + id;\n+\t\tresult = prime * result + ((name == null) ? 0 : name.hashCode());\n+\t\treturn result;\n+\t}\n+\t@Override\n+\tpublic boolean equals(Object obj) {\n+\t\tif (this == obj)\n+\t\t\treturn true;\n+\t\tif (obj == null)\n+\t\t\treturn false;\n+\t\tif (getClass() != obj.getClass())\n+\t\t\treturn false;\n+\t\tBuilding other = (Building) obj;\n+\t\tif (campus == null) {\n+\t\t\tif (other.campus != null)\n+\t\t\t\treturn false;\n+\t\t} else if (!campus.equals(other.campus))\n+\t\t\treturn false;\n+\t\tif (id != other.id)\n+\t\t\treturn false;\n+\t\tif (name == null) {\n+\t\t\tif (other.name != null)\n+\t\t\t\treturn false;\n+\t\t} else if (!name.equals(other.name))","path":"src/main/java/com/revature/models/Building.java","position":74,"original_position":74,"commit_id":"5bd6e912496f1f9c9fca23e7bfa25c8639527617","original_commit_id":"5bd6e912496f1f9c9fca23e7bfa25c8639527617","user":{"login":"sonarcloud[bot]","id":39514782,"node_id":"MDM6Qm90Mzk1MTQ3ODI=","avatar_url":"https://avatars2.githubusercontent.com/in/12526?v=4","gravatar_id":"","url":"https://api.github.com/users/sonarcloud%5Bbot%5D","html_url":"https://github.com/apps/sonarcloud","followers_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/followers","following_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/repos","events_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"![Code Smell](https://sonarsource.github.io/sonar-github/code_smell.png 'Code Smell') Code Smell: Use indentation to denote the code conditionally executed by this \"if\". ([squid:S3973](https://sonarcloud.io/organizations/1809-spark-usf/rules#rule_key=squid%3AS3973))\n\n[See it in SonarCloud](https://sonarcloud.io/project/issues?id=com.revature.rms%3ARMSResourceService&pullRequest=9&issues=AWeemzTuh73OK3QaR_L4&open=AWeemzTuh73OK3QaR_L4)\n\n[ISSUE_KEY]: AWeemzTuh73OK3QaR_L4","created_at":"2018-12-11T20:52:40Z","updated_at":"2018-12-11T20:52:40Z","html_url":"https://github.com/1809-Spark-usf/rms-resource-service/pull/9#discussion_r240786483","pull_request_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls/9","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls/comments/240786483"},"html":{"href":"https://github.com/1809-Spark-usf/rms-resource-service/pull/9#discussion_r240786483"},"pull_request":{"href":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls/9","id":237782976,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3NzgyOTc2","html_url":"https://github.com/1809-Spark-usf/rms-resource-service/pull/9","diff_url":"https://github.com/1809-Spark-usf/rms-resource-service/pull/9.diff","patch_url":"https://github.com/1809-Spark-usf/rms-resource-service/pull/9.patch","issue_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/issues/9","number":9,"state":"open","locked":false,"title":"BuildTrigger-NoMerge","user":{"login":"mgoshorn","id":20766107,"node_id":"MDQ6VXNlcjIwNzY2MTA3","avatar_url":"https://avatars3.githubusercontent.com/u/20766107?v=4","gravatar_id":"","url":"https://api.github.com/users/mgoshorn","html_url":"https://github.com/mgoshorn","followers_url":"https://api.github.com/users/mgoshorn/followers","following_url":"https://api.github.com/users/mgoshorn/following{/other_user}","gists_url":"https://api.github.com/users/mgoshorn/gists{/gist_id}","starred_url":"https://api.github.com/users/mgoshorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgoshorn/subscriptions","organizations_url":"https://api.github.com/users/mgoshorn/orgs","repos_url":"https://api.github.com/users/mgoshorn/repos","events_url":"https://api.github.com/users/mgoshorn/events{/privacy}","received_events_url":"https://api.github.com/users/mgoshorn/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-11T18:30:04Z","updated_at":"2018-12-11T20:52:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c6a68b70cd9e12f808991d1211851e522c4b6d5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls/9/commits","review_comments_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls/9/comments","review_comment_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/issues/9/comments","statuses_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/statuses/5bd6e912496f1f9c9fca23e7bfa25c8639527617","head":{"label":"1809-Spark-usf:Resource-Setup","ref":"Resource-Setup","sha":"5bd6e912496f1f9c9fca23e7bfa25c8639527617","user":{"login":"1809-Spark-usf","id":45554062,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NTU0MDYy","avatar_url":"https://avatars1.githubusercontent.com/u/45554062?v=4","gravatar_id":"","url":"https://api.github.com/users/1809-Spark-usf","html_url":"https://github.com/1809-Spark-usf","followers_url":"https://api.github.com/users/1809-Spark-usf/followers","following_url":"https://api.github.com/users/1809-Spark-usf/following{/other_user}","gists_url":"https://api.github.com/users/1809-Spark-usf/gists{/gist_id}","starred_url":"https://api.github.com/users/1809-Spark-usf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1809-Spark-usf/subscriptions","organizations_url":"https://api.github.com/users/1809-Spark-usf/orgs","repos_url":"https://api.github.com/users/1809-Spark-usf/repos","events_url":"https://api.github.com/users/1809-Spark-usf/events{/privacy}","received_events_url":"https://api.github.com/users/1809-Spark-usf/received_events","type":"Organization","site_admin":false},"repo":{"id":160149532,"node_id":"MDEwOlJlcG9zaXRvcnkxNjAxNDk1MzI=","name":"rms-resource-service","full_name":"1809-Spark-usf/rms-resource-service","private":false,"owner":{"login":"1809-Spark-usf","id":45554062,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NTU0MDYy","avatar_url":"https://avatars1.githubusercontent.com/u/45554062?v=4","gravatar_id":"","url":"https://api.github.com/users/1809-Spark-usf","html_url":"https://github.com/1809-Spark-usf","followers_url":"https://api.github.com/users/1809-Spark-usf/followers","following_url":"https://api.github.com/users/1809-Spark-usf/following{/other_user}","gists_url":"https://api.github.com/users/1809-Spark-usf/gists{/gist_id}","starred_url":"https://api.github.com/users/1809-Spark-usf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1809-Spark-usf/subscriptions","organizations_url":"https://api.github.com/users/1809-Spark-usf/orgs","repos_url":"https://api.github.com/users/1809-Spark-usf/repos","events_url":"https://api.github.com/users/1809-Spark-usf/events{/privacy}","received_events_url":"https://api.github.com/users/1809-Spark-usf/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/1809-Spark-usf/rms-resource-service","description":null,"fork":false,"url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service","forks_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/forks","keys_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/teams","hooks_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/hooks","issue_events_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/issues/events{/number}","events_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/events","assignees_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/assignees{/user}","branches_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/branches{/branch}","tags_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/tags","blobs_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/statuses/{sha}","languages_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/languages","stargazers_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/stargazers","contributors_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/contributors","subscribers_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/subscribers","subscription_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/subscription","commits_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/contents/{+path}","compare_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/merges","archive_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/downloads","issues_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/issues{/number}","pulls_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls{/number}","milestones_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/milestones{/number}","notifications_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/labels{/name}","releases_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/releases{/id}","deployments_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/deployments","created_at":"2018-12-03T07:26:05Z","updated_at":"2018-12-04T23:50:46Z","pushed_at":"2018-12-11T20:31:53Z","git_url":"git://github.com/1809-Spark-usf/rms-resource-service.git","ssh_url":"git@github.com:1809-Spark-usf/rms-resource-service.git","clone_url":"https://github.com/1809-Spark-usf/rms-resource-service.git","svn_url":"https://github.com/1809-Spark-usf/rms-resource-service","homepage":null,"size":85,"stargazers_count":0,"watchers_count":0,"language":"Java","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":8,"license":null,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"1809-Spark-usf:master","ref":"master","sha":"fa7636f4376a602b50b80ecb1e48ca1cdb107a29","user":{"login":"1809-Spark-usf","id":45554062,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NTU0MDYy","avatar_url":"https://avatars1.githubusercontent.com/u/45554062?v=4","gravatar_id":"","url":"https://api.github.com/users/1809-Spark-usf","html_url":"https://github.com/1809-Spark-usf","followers_url":"https://api.github.com/users/1809-Spark-usf/followers","following_url":"https://api.github.com/users/1809-Spark-usf/following{/other_user}","gists_url":"https://api.github.com/users/1809-Spark-usf/gists{/gist_id}","starred_url":"https://api.github.com/users/1809-Spark-usf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1809-Spark-usf/subscriptions","organizations_url":"https://api.github.com/users/1809-Spark-usf/orgs","repos_url":"https://api.github.com/users/1809-Spark-usf/repos","events_url":"https://api.github.com/users/1809-Spark-usf/events{/privacy}","received_events_url":"https://api.github.com/users/1809-Spark-usf/received_events","type":"Organization","site_admin":false},"repo":{"id":160149532,"node_id":"MDEwOlJlcG9zaXRvcnkxNjAxNDk1MzI=","name":"rms-resource-service","full_name":"1809-Spark-usf/rms-resource-service","private":false,"owner":{"login":"1809-Spark-usf","id":45554062,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NTU0MDYy","avatar_url":"https://avatars1.githubusercontent.com/u/45554062?v=4","gravatar_id":"","url":"https://api.github.com/users/1809-Spark-usf","html_url":"https://github.com/1809-Spark-usf","followers_url":"https://api.github.com/users/1809-Spark-usf/followers","following_url":"https://api.github.com/users/1809-Spark-usf/following{/other_user}","gists_url":"https://api.github.com/users/1809-Spark-usf/gists{/gist_id}","starred_url":"https://api.github.com/users/1809-Spark-usf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1809-Spark-usf/subscriptions","organizations_url":"https://api.github.com/users/1809-Spark-usf/orgs","repos_url":"https://api.github.com/users/1809-Spark-usf/repos","events_url":"https://api.github.com/users/1809-Spark-usf/events{/privacy}","received_events_url":"https://api.github.com/users/1809-Spark-usf/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/1809-Spark-usf/rms-resource-service","description":null,"fork":false,"url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service","forks_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/forks","keys_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/teams","hooks_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/hooks","issue_events_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/issues/events{/number}","events_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/events","assignees_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/assignees{/user}","branches_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/branches{/branch}","tags_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/tags","blobs_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/statuses/{sha}","languages_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/languages","stargazers_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/stargazers","contributors_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/contributors","subscribers_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/subscribers","subscription_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/subscription","commits_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/contents/{+path}","compare_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/merges","archive_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/downloads","issues_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/issues{/number}","pulls_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls{/number}","milestones_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/milestones{/number}","notifications_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/labels{/name}","releases_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/releases{/id}","deployments_url":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/deployments","created_at":"2018-12-03T07:26:05Z","updated_at":"2018-12-04T23:50:46Z","pushed_at":"2018-12-11T20:31:53Z","git_url":"git://github.com/1809-Spark-usf/rms-resource-service.git","ssh_url":"git@github.com:1809-Spark-usf/rms-resource-service.git","clone_url":"https://github.com/1809-Spark-usf/rms-resource-service.git","svn_url":"https://github.com/1809-Spark-usf/rms-resource-service","homepage":null,"size":85,"stargazers_count":0,"watchers_count":0,"language":"Java","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":8,"license":null,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls/9"},"html":{"href":"https://github.com/1809-Spark-usf/rms-resource-service/pull/9"},"issue":{"href":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/issues/9"},"comments":{"href":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/1809-Spark-usf/rms-resource-service/statuses/5bd6e912496f1f9c9fca23e7bfa25c8639527617"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sonarcloud"}}