{"action":"created","comment":{"url":"https://api.github.com/repos/sescotti/vitalis/pulls/comments/76276507","id":76276507,"diff_hunk":"@@ -0,0 +1,54 @@\n+package com.rocket.vitalis.model;\n+\n+import lombok.Getter;\n+import lombok.NonNull;\n+import lombok.RequiredArgsConstructor;\n+import lombok.Setter;\n+import lombok.experimental.Delegate;\n+\n+import javax.persistence.*;\n+import java.util.Date;\n+\n+/**\n+ * Created by Ailin on 21/08/2016.\n+ */\n+@Entity\n+public class Measurement {\n+\n+    @Id\n+    @GeneratedValue\n+    @Getter @Setter\n+    private Long id;\n+\n+    @Column\n+    @Getter @Setter\n+    private Date measurementDate;\n+\n+    @Column(nullable = false)\n+    @Getter @Setter @NonNull\n+    private Double value;\n+\n+    @Column\n+    @Getter @Setter\n+    private MeasurementType measurementType;\n+\n+    /*DEBE ESTAR RELACIONADO CON Monitoring*/\n+    @OneToOne\n+    @Getter @Setter\n+    private Monitoring idMonitoring;\n+\n+    public Measurement(String measureTypeString, Double value ){\n+        switch (measureTypeString){","path":"vitalis-web/src/main/java/com/rocket/vitalis/model/Measurement.java","position":41,"original_position":41,"commit_id":"0b54639341cf94c6a9e3202755d0e9a051f36ab6","original_commit_id":"0b54639341cf94c6a9e3202755d0e9a051f36ab6","user":{"login":"sescotti","id":6861629,"avatar_url":"https://avatars.githubusercontent.com/u/6861629?v=3","gravatar_id":"","url":"https://api.github.com/users/sescotti","html_url":"https://github.com/sescotti","followers_url":"https://api.github.com/users/sescotti/followers","following_url":"https://api.github.com/users/sescotti/following{/other_user}","gists_url":"https://api.github.com/users/sescotti/gists{/gist_id}","starred_url":"https://api.github.com/users/sescotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sescotti/subscriptions","organizations_url":"https://api.github.com/users/sescotti/orgs","repos_url":"https://api.github.com/users/sescotti/repos","events_url":"https://api.github.com/users/sescotti/events{/privacy}","received_events_url":"https://api.github.com/users/sescotti/received_events","type":"User","site_admin":false},"body":"aunque pensándolo un poco mejor quizás lo mejor sea que a este constructor le pases como parámetro un tipo MeasurementType directamente y que el parsing lo hagas afuera","created_at":"2016-08-25T16:22:40Z","updated_at":"2016-08-25T16:22:40Z","html_url":"https://github.com/sescotti/vitalis/pull/3#discussion_r76276507","pull_request_url":"https://api.github.com/repos/sescotti/vitalis/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/sescotti/vitalis/pulls/comments/76276507"},"html":{"href":"https://github.com/sescotti/vitalis/pull/3#discussion_r76276507"},"pull_request":{"href":"https://api.github.com/repos/sescotti/vitalis/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/sescotti/vitalis/pulls/3","id":82642624,"html_url":"https://github.com/sescotti/vitalis/pull/3","diff_url":"https://github.com/sescotti/vitalis/pull/3.diff","patch_url":"https://github.com/sescotti/vitalis/pull/3.patch","issue_url":"https://api.github.com/repos/sescotti/vitalis/issues/3","number":3,"state":"open","locked":false,"title":"Clasesdominio","user":{"login":"ailinmerlo87","id":15573253,"avatar_url":"https://avatars.githubusercontent.com/u/15573253?v=3","gravatar_id":"","url":"https://api.github.com/users/ailinmerlo87","html_url":"https://github.com/ailinmerlo87","followers_url":"https://api.github.com/users/ailinmerlo87/followers","following_url":"https://api.github.com/users/ailinmerlo87/following{/other_user}","gists_url":"https://api.github.com/users/ailinmerlo87/gists{/gist_id}","starred_url":"https://api.github.com/users/ailinmerlo87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ailinmerlo87/subscriptions","organizations_url":"https://api.github.com/users/ailinmerlo87/orgs","repos_url":"https://api.github.com/users/ailinmerlo87/repos","events_url":"https://api.github.com/users/ailinmerlo87/events{/privacy}","received_events_url":"https://api.github.com/users/ailinmerlo87/received_events","type":"User","site_admin":false},"body":"Es solo para probar, no subir","created_at":"2016-08-25T01:06:14Z","updated_at":"2016-08-25T16:22:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sescotti/vitalis/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sescotti/vitalis/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sescotti/vitalis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sescotti/vitalis/issues/3/comments","statuses_url":"https://api.github.com/repos/sescotti/vitalis/statuses/0b54639341cf94c6a9e3202755d0e9a051f36ab6","head":{"label":"sescotti:ClasesDominio","ref":"ClasesDominio","sha":"0b54639341cf94c6a9e3202755d0e9a051f36ab6","user":{"login":"sescotti","id":6861629,"avatar_url":"https://avatars.githubusercontent.com/u/6861629?v=3","gravatar_id":"","url":"https://api.github.com/users/sescotti","html_url":"https://github.com/sescotti","followers_url":"https://api.github.com/users/sescotti/followers","following_url":"https://api.github.com/users/sescotti/following{/other_user}","gists_url":"https://api.github.com/users/sescotti/gists{/gist_id}","starred_url":"https://api.github.com/users/sescotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sescotti/subscriptions","organizations_url":"https://api.github.com/users/sescotti/orgs","repos_url":"https://api.github.com/users/sescotti/repos","events_url":"https://api.github.com/users/sescotti/events{/privacy}","received_events_url":"https://api.github.com/users/sescotti/received_events","type":"User","site_admin":false},"repo":{"id":65339586,"name":"vitalis","full_name":"sescotti/vitalis","owner":{"login":"sescotti","id":6861629,"avatar_url":"https://avatars.githubusercontent.com/u/6861629?v=3","gravatar_id":"","url":"https://api.github.com/users/sescotti","html_url":"https://github.com/sescotti","followers_url":"https://api.github.com/users/sescotti/followers","following_url":"https://api.github.com/users/sescotti/following{/other_user}","gists_url":"https://api.github.com/users/sescotti/gists{/gist_id}","starred_url":"https://api.github.com/users/sescotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sescotti/subscriptions","organizations_url":"https://api.github.com/users/sescotti/orgs","repos_url":"https://api.github.com/users/sescotti/repos","events_url":"https://api.github.com/users/sescotti/events{/privacy}","received_events_url":"https://api.github.com/users/sescotti/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sescotti/vitalis","description":"Vitalis by Rocket App | Web + Mobile + Module","fork":false,"url":"https://api.github.com/repos/sescotti/vitalis","forks_url":"https://api.github.com/repos/sescotti/vitalis/forks","keys_url":"https://api.github.com/repos/sescotti/vitalis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sescotti/vitalis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sescotti/vitalis/teams","hooks_url":"https://api.github.com/repos/sescotti/vitalis/hooks","issue_events_url":"https://api.github.com/repos/sescotti/vitalis/issues/events{/number}","events_url":"https://api.github.com/repos/sescotti/vitalis/events","assignees_url":"https://api.github.com/repos/sescotti/vitalis/assignees{/user}","branches_url":"https://api.github.com/repos/sescotti/vitalis/branches{/branch}","tags_url":"https://api.github.com/repos/sescotti/vitalis/tags","blobs_url":"https://api.github.com/repos/sescotti/vitalis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sescotti/vitalis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sescotti/vitalis/git/refs{/sha}","trees_url":"https://api.github.com/repos/sescotti/vitalis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sescotti/vitalis/statuses/{sha}","languages_url":"https://api.github.com/repos/sescotti/vitalis/languages","stargazers_url":"https://api.github.com/repos/sescotti/vitalis/stargazers","contributors_url":"https://api.github.com/repos/sescotti/vitalis/contributors","subscribers_url":"https://api.github.com/repos/sescotti/vitalis/subscribers","subscription_url":"https://api.github.com/repos/sescotti/vitalis/subscription","commits_url":"https://api.github.com/repos/sescotti/vitalis/commits{/sha}","git_commits_url":"https://api.github.com/repos/sescotti/vitalis/git/commits{/sha}","comments_url":"https://api.github.com/repos/sescotti/vitalis/comments{/number}","issue_comment_url":"https://api.github.com/repos/sescotti/vitalis/issues/comments{/number}","contents_url":"https://api.github.com/repos/sescotti/vitalis/contents/{+path}","compare_url":"https://api.github.com/repos/sescotti/vitalis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sescotti/vitalis/merges","archive_url":"https://api.github.com/repos/sescotti/vitalis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sescotti/vitalis/downloads","issues_url":"https://api.github.com/repos/sescotti/vitalis/issues{/number}","pulls_url":"https://api.github.com/repos/sescotti/vitalis/pulls{/number}","milestones_url":"https://api.github.com/repos/sescotti/vitalis/milestones{/number}","notifications_url":"https://api.github.com/repos/sescotti/vitalis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sescotti/vitalis/labels{/name}","releases_url":"https://api.github.com/repos/sescotti/vitalis/releases{/id}","deployments_url":"https://api.github.com/repos/sescotti/vitalis/deployments","created_at":"2016-08-10T01:15:39Z","updated_at":"2016-08-21T21:46:25Z","pushed_at":"2016-08-25T14:00:43Z","git_url":"git://github.com/sescotti/vitalis.git","ssh_url":"git@github.com:sescotti/vitalis.git","clone_url":"https://github.com/sescotti/vitalis.git","svn_url":"https://github.com/sescotti/vitalis","homepage":null,"size":1617,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"sescotti:master","ref":"master","sha":"ebff4b3df6ac134175a23493b814a38a740b8265","user":{"login":"sescotti","id":6861629,"avatar_url":"https://avatars.githubusercontent.com/u/6861629?v=3","gravatar_id":"","url":"https://api.github.com/users/sescotti","html_url":"https://github.com/sescotti","followers_url":"https://api.github.com/users/sescotti/followers","following_url":"https://api.github.com/users/sescotti/following{/other_user}","gists_url":"https://api.github.com/users/sescotti/gists{/gist_id}","starred_url":"https://api.github.com/users/sescotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sescotti/subscriptions","organizations_url":"https://api.github.com/users/sescotti/orgs","repos_url":"https://api.github.com/users/sescotti/repos","events_url":"https://api.github.com/users/sescotti/events{/privacy}","received_events_url":"https://api.github.com/users/sescotti/received_events","type":"User","site_admin":false},"repo":{"id":65339586,"name":"vitalis","full_name":"sescotti/vitalis","owner":{"login":"sescotti","id":6861629,"avatar_url":"https://avatars.githubusercontent.com/u/6861629?v=3","gravatar_id":"","url":"https://api.github.com/users/sescotti","html_url":"https://github.com/sescotti","followers_url":"https://api.github.com/users/sescotti/followers","following_url":"https://api.github.com/users/sescotti/following{/other_user}","gists_url":"https://api.github.com/users/sescotti/gists{/gist_id}","starred_url":"https://api.github.com/users/sescotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sescotti/subscriptions","organizations_url":"https://api.github.com/users/sescotti/orgs","repos_url":"https://api.github.com/users/sescotti/repos","events_url":"https://api.github.com/users/sescotti/events{/privacy}","received_events_url":"https://api.github.com/users/sescotti/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sescotti/vitalis","description":"Vitalis by Rocket App | Web + Mobile + Module","fork":false,"url":"https://api.github.com/repos/sescotti/vitalis","forks_url":"https://api.github.com/repos/sescotti/vitalis/forks","keys_url":"https://api.github.com/repos/sescotti/vitalis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sescotti/vitalis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sescotti/vitalis/teams","hooks_url":"https://api.github.com/repos/sescotti/vitalis/hooks","issue_events_url":"https://api.github.com/repos/sescotti/vitalis/issues/events{/number}","events_url":"https://api.github.com/repos/sescotti/vitalis/events","assignees_url":"https://api.github.com/repos/sescotti/vitalis/assignees{/user}","branches_url":"https://api.github.com/repos/sescotti/vitalis/branches{/branch}","tags_url":"https://api.github.com/repos/sescotti/vitalis/tags","blobs_url":"https://api.github.com/repos/sescotti/vitalis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sescotti/vitalis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sescotti/vitalis/git/refs{/sha}","trees_url":"https://api.github.com/repos/sescotti/vitalis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sescotti/vitalis/statuses/{sha}","languages_url":"https://api.github.com/repos/sescotti/vitalis/languages","stargazers_url":"https://api.github.com/repos/sescotti/vitalis/stargazers","contributors_url":"https://api.github.com/repos/sescotti/vitalis/contributors","subscribers_url":"https://api.github.com/repos/sescotti/vitalis/subscribers","subscription_url":"https://api.github.com/repos/sescotti/vitalis/subscription","commits_url":"https://api.github.com/repos/sescotti/vitalis/commits{/sha}","git_commits_url":"https://api.github.com/repos/sescotti/vitalis/git/commits{/sha}","comments_url":"https://api.github.com/repos/sescotti/vitalis/comments{/number}","issue_comment_url":"https://api.github.com/repos/sescotti/vitalis/issues/comments{/number}","contents_url":"https://api.github.com/repos/sescotti/vitalis/contents/{+path}","compare_url":"https://api.github.com/repos/sescotti/vitalis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sescotti/vitalis/merges","archive_url":"https://api.github.com/repos/sescotti/vitalis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sescotti/vitalis/downloads","issues_url":"https://api.github.com/repos/sescotti/vitalis/issues{/number}","pulls_url":"https://api.github.com/repos/sescotti/vitalis/pulls{/number}","milestones_url":"https://api.github.com/repos/sescotti/vitalis/milestones{/number}","notifications_url":"https://api.github.com/repos/sescotti/vitalis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sescotti/vitalis/labels{/name}","releases_url":"https://api.github.com/repos/sescotti/vitalis/releases{/id}","deployments_url":"https://api.github.com/repos/sescotti/vitalis/deployments","created_at":"2016-08-10T01:15:39Z","updated_at":"2016-08-21T21:46:25Z","pushed_at":"2016-08-25T14:00:43Z","git_url":"git://github.com/sescotti/vitalis.git","ssh_url":"git@github.com:sescotti/vitalis.git","clone_url":"https://github.com/sescotti/vitalis.git","svn_url":"https://github.com/sescotti/vitalis","homepage":null,"size":1617,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sescotti/vitalis/pulls/3"},"html":{"href":"https://github.com/sescotti/vitalis/pull/3"},"issue":{"href":"https://api.github.com/repos/sescotti/vitalis/issues/3"},"comments":{"href":"https://api.github.com/repos/sescotti/vitalis/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sescotti/vitalis/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sescotti/vitalis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sescotti/vitalis/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sescotti/vitalis/statuses/0b54639341cf94c6a9e3202755d0e9a051f36ab6"}}}}
{"actor":{"display_login":"sescotti"}}