{"action":"created","comment":{"url":"https://api.github.com/repos/motech/motech/pulls/comments/41135420","id":41135420,"diff_hunk":"@@ -175,6 +179,9 @@ public T retrieve(String primaryKeyName, Object value) {\n     @Transactional\n     public T update(final T object) {\n         validateCredentials(object);\n+        if (JDOHelper.getObjectState(object) == ObjectState.TRANSIENT) {","path":"platform/mds/mds/src/main/java/org/motechproject/mds/service/DefaultMotechDataService.java","position":33,"original_position":33,"commit_id":"a2b0fbd38668d91b4a8722ead7391b5dcb602c77","original_commit_id":"a2b0fbd38668d91b4a8722ead7391b5dcb602c77","user":{"login":"pgesek","id":1384169,"avatar_url":"https://avatars.githubusercontent.com/u/1384169?v=3","gravatar_id":"","url":"https://api.github.com/users/pgesek","html_url":"https://github.com/pgesek","followers_url":"https://api.github.com/users/pgesek/followers","following_url":"https://api.github.com/users/pgesek/following{/other_user}","gists_url":"https://api.github.com/users/pgesek/gists{/gist_id}","starred_url":"https://api.github.com/users/pgesek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgesek/subscriptions","organizations_url":"https://api.github.com/users/pgesek/orgs","repos_url":"https://api.github.com/users/pgesek/repos","events_url":"https://api.github.com/users/pgesek/events{/privacy}","received_events_url":"https://api.github.com/users/pgesek/received_events","type":"User","site_admin":false},"body":"Will this method of updating allow us to get rid of those doIntransaction from ITs? We already have an updateFromTransient method if I recall","created_at":"2015-10-05T11:58:10Z","updated_at":"2015-10-05T11:58:10Z","html_url":"https://github.com/motech/motech/pull/32#discussion_r41135420","pull_request_url":"https://api.github.com/repos/motech/motech/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/motech/motech/pulls/comments/41135420"},"html":{"href":"https://github.com/motech/motech/pull/32#discussion_r41135420"},"pull_request":{"href":"https://api.github.com/repos/motech/motech/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/motech/motech/pulls/32","id":45044246,"html_url":"https://github.com/motech/motech/pull/32","diff_url":"https://github.com/motech/motech/pull/32.diff","patch_url":"https://github.com/motech/motech/pull/32.patch","issue_url":"https://api.github.com/repos/motech/motech/issues/32","number":32,"state":"open","locked":false,"title":"MOTECH-1732: Improves datanucleus performance","user":{"login":"kmadej","id":9861925,"avatar_url":"https://avatars.githubusercontent.com/u/9861925?v=3","gravatar_id":"","url":"https://api.github.com/users/kmadej","html_url":"https://github.com/kmadej","followers_url":"https://api.github.com/users/kmadej/followers","following_url":"https://api.github.com/users/kmadej/following{/other_user}","gists_url":"https://api.github.com/users/kmadej/gists{/gist_id}","starred_url":"https://api.github.com/users/kmadej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmadej/subscriptions","organizations_url":"https://api.github.com/users/kmadej/orgs","repos_url":"https://api.github.com/users/kmadej/repos","events_url":"https://api.github.com/users/kmadej/events{/privacy}","received_events_url":"https://api.github.com/users/kmadej/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-15T12:45:22Z","updated_at":"2015-10-05T11:58:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f30aad056e30a334835d645adb5e06b0577d644","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/motech/motech/pulls/32/commits","review_comments_url":"https://api.github.com/repos/motech/motech/pulls/32/comments","review_comment_url":"https://api.github.com/repos/motech/motech/pulls/comments{/number}","comments_url":"https://api.github.com/repos/motech/motech/issues/32/comments","statuses_url":"https://api.github.com/repos/motech/motech/statuses/a2b0fbd38668d91b4a8722ead7391b5dcb602c77","head":{"label":"kmadej:dev/dn4-perf","ref":"dev/dn4-perf","sha":"a2b0fbd38668d91b4a8722ead7391b5dcb602c77","user":{"login":"kmadej","id":9861925,"avatar_url":"https://avatars.githubusercontent.com/u/9861925?v=3","gravatar_id":"","url":"https://api.github.com/users/kmadej","html_url":"https://github.com/kmadej","followers_url":"https://api.github.com/users/kmadej/followers","following_url":"https://api.github.com/users/kmadej/following{/other_user}","gists_url":"https://api.github.com/users/kmadej/gists{/gist_id}","starred_url":"https://api.github.com/users/kmadej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmadej/subscriptions","organizations_url":"https://api.github.com/users/kmadej/orgs","repos_url":"https://api.github.com/users/kmadej/repos","events_url":"https://api.github.com/users/kmadej/events{/privacy}","received_events_url":"https://api.github.com/users/kmadej/received_events","type":"User","site_admin":false},"repo":{"id":42516496,"name":"motech","full_name":"kmadej/motech","owner":{"login":"kmadej","id":9861925,"avatar_url":"https://avatars.githubusercontent.com/u/9861925?v=3","gravatar_id":"","url":"https://api.github.com/users/kmadej","html_url":"https://github.com/kmadej","followers_url":"https://api.github.com/users/kmadej/followers","following_url":"https://api.github.com/users/kmadej/following{/other_user}","gists_url":"https://api.github.com/users/kmadej/gists{/gist_id}","starred_url":"https://api.github.com/users/kmadej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmadej/subscriptions","organizations_url":"https://api.github.com/users/kmadej/orgs","repos_url":"https://api.github.com/users/kmadej/repos","events_url":"https://api.github.com/users/kmadej/events{/privacy}","received_events_url":"https://api.github.com/users/kmadej/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kmadej/motech","description":"Mobile Technology for Community Health","fork":true,"url":"https://api.github.com/repos/kmadej/motech","forks_url":"https://api.github.com/repos/kmadej/motech/forks","keys_url":"https://api.github.com/repos/kmadej/motech/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmadej/motech/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmadej/motech/teams","hooks_url":"https://api.github.com/repos/kmadej/motech/hooks","issue_events_url":"https://api.github.com/repos/kmadej/motech/issues/events{/number}","events_url":"https://api.github.com/repos/kmadej/motech/events","assignees_url":"https://api.github.com/repos/kmadej/motech/assignees{/user}","branches_url":"https://api.github.com/repos/kmadej/motech/branches{/branch}","tags_url":"https://api.github.com/repos/kmadej/motech/tags","blobs_url":"https://api.github.com/repos/kmadej/motech/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmadej/motech/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmadej/motech/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmadej/motech/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmadej/motech/statuses/{sha}","languages_url":"https://api.github.com/repos/kmadej/motech/languages","stargazers_url":"https://api.github.com/repos/kmadej/motech/stargazers","contributors_url":"https://api.github.com/repos/kmadej/motech/contributors","subscribers_url":"https://api.github.com/repos/kmadej/motech/subscribers","subscription_url":"https://api.github.com/repos/kmadej/motech/subscription","commits_url":"https://api.github.com/repos/kmadej/motech/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmadej/motech/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmadej/motech/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmadej/motech/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmadej/motech/contents/{+path}","compare_url":"https://api.github.com/repos/kmadej/motech/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmadej/motech/merges","archive_url":"https://api.github.com/repos/kmadej/motech/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmadej/motech/downloads","issues_url":"https://api.github.com/repos/kmadej/motech/issues{/number}","pulls_url":"https://api.github.com/repos/kmadej/motech/pulls{/number}","milestones_url":"https://api.github.com/repos/kmadej/motech/milestones{/number}","notifications_url":"https://api.github.com/repos/kmadej/motech/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmadej/motech/labels{/name}","releases_url":"https://api.github.com/repos/kmadej/motech/releases{/id}","created_at":"2015-09-15T11:57:10Z","updated_at":"2015-09-15T11:57:16Z","pushed_at":"2015-10-05T09:49:54Z","git_url":"git://github.com/kmadej/motech.git","ssh_url":"git@github.com:kmadej/motech.git","clone_url":"https://github.com/kmadej/motech.git","svn_url":"https://github.com/kmadej/motech","homepage":"http://docs.motechproject.org","size":80449,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"motech:master","ref":"master","sha":"1edfd323b47f6aa55a2893ed8b78bebbbcdf738c","user":{"login":"motech","id":477919,"avatar_url":"https://avatars.githubusercontent.com/u/477919?v=3","gravatar_id":"","url":"https://api.github.com/users/motech","html_url":"https://github.com/motech","followers_url":"https://api.github.com/users/motech/followers","following_url":"https://api.github.com/users/motech/following{/other_user}","gists_url":"https://api.github.com/users/motech/gists{/gist_id}","starred_url":"https://api.github.com/users/motech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech/subscriptions","organizations_url":"https://api.github.com/users/motech/orgs","repos_url":"https://api.github.com/users/motech/repos","events_url":"https://api.github.com/users/motech/events{/privacy}","received_events_url":"https://api.github.com/users/motech/received_events","type":"Organization","site_admin":false},"repo":{"id":40527870,"name":"motech","full_name":"motech/motech","owner":{"login":"motech","id":477919,"avatar_url":"https://avatars.githubusercontent.com/u/477919?v=3","gravatar_id":"","url":"https://api.github.com/users/motech","html_url":"https://github.com/motech","followers_url":"https://api.github.com/users/motech/followers","following_url":"https://api.github.com/users/motech/following{/other_user}","gists_url":"https://api.github.com/users/motech/gists{/gist_id}","starred_url":"https://api.github.com/users/motech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech/subscriptions","organizations_url":"https://api.github.com/users/motech/orgs","repos_url":"https://api.github.com/users/motech/repos","events_url":"https://api.github.com/users/motech/events{/privacy}","received_events_url":"https://api.github.com/users/motech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/motech/motech","description":"Mobile Technology for Community Health","fork":false,"url":"https://api.github.com/repos/motech/motech","forks_url":"https://api.github.com/repos/motech/motech/forks","keys_url":"https://api.github.com/repos/motech/motech/keys{/key_id}","collaborators_url":"https://api.github.com/repos/motech/motech/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/motech/motech/teams","hooks_url":"https://api.github.com/repos/motech/motech/hooks","issue_events_url":"https://api.github.com/repos/motech/motech/issues/events{/number}","events_url":"https://api.github.com/repos/motech/motech/events","assignees_url":"https://api.github.com/repos/motech/motech/assignees{/user}","branches_url":"https://api.github.com/repos/motech/motech/branches{/branch}","tags_url":"https://api.github.com/repos/motech/motech/tags","blobs_url":"https://api.github.com/repos/motech/motech/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/motech/motech/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/motech/motech/git/refs{/sha}","trees_url":"https://api.github.com/repos/motech/motech/git/trees{/sha}","statuses_url":"https://api.github.com/repos/motech/motech/statuses/{sha}","languages_url":"https://api.github.com/repos/motech/motech/languages","stargazers_url":"https://api.github.com/repos/motech/motech/stargazers","contributors_url":"https://api.github.com/repos/motech/motech/contributors","subscribers_url":"https://api.github.com/repos/motech/motech/subscribers","subscription_url":"https://api.github.com/repos/motech/motech/subscription","commits_url":"https://api.github.com/repos/motech/motech/commits{/sha}","git_commits_url":"https://api.github.com/repos/motech/motech/git/commits{/sha}","comments_url":"https://api.github.com/repos/motech/motech/comments{/number}","issue_comment_url":"https://api.github.com/repos/motech/motech/issues/comments{/number}","contents_url":"https://api.github.com/repos/motech/motech/contents/{+path}","compare_url":"https://api.github.com/repos/motech/motech/compare/{base}...{head}","merges_url":"https://api.github.com/repos/motech/motech/merges","archive_url":"https://api.github.com/repos/motech/motech/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/motech/motech/downloads","issues_url":"https://api.github.com/repos/motech/motech/issues{/number}","pulls_url":"https://api.github.com/repos/motech/motech/pulls{/number}","milestones_url":"https://api.github.com/repos/motech/motech/milestones{/number}","notifications_url":"https://api.github.com/repos/motech/motech/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/motech/motech/labels{/name}","releases_url":"https://api.github.com/repos/motech/motech/releases{/id}","created_at":"2015-08-11T07:26:54Z","updated_at":"2015-10-01T20:00:48Z","pushed_at":"2015-10-05T11:47:15Z","git_url":"git://github.com/motech/motech.git","ssh_url":"git@github.com:motech/motech.git","clone_url":"https://github.com/motech/motech.git","svn_url":"https://github.com/motech/motech","homepage":"http://docs.motechproject.org","size":42375,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":14,"forks":19,"open_issues":14,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/motech/motech/pulls/32"},"html":{"href":"https://github.com/motech/motech/pull/32"},"issue":{"href":"https://api.github.com/repos/motech/motech/issues/32"},"comments":{"href":"https://api.github.com/repos/motech/motech/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/motech/motech/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/motech/motech/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/motech/motech/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/motech/motech/statuses/a2b0fbd38668d91b4a8722ead7391b5dcb602c77"}}}}