{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/930","labels_url":"https://api.github.com/repos/realm/realm-java/issues/930/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/930/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/930/events","html_url":"https://github.com/realm/realm-java/issues/930","id":60080888,"number":930,"title":"createAllFromJson with PrimaryKey","user":{"login":"thorsten7","id":11347941,"avatar_url":"https://avatars.githubusercontent.com/u/11347941?v=3","gravatar_id":"","url":"https://api.github.com/users/thorsten7","html_url":"https://github.com/thorsten7","followers_url":"https://api.github.com/users/thorsten7/followers","following_url":"https://api.github.com/users/thorsten7/following{/other_user}","gists_url":"https://api.github.com/users/thorsten7/gists{/gist_id}","starred_url":"https://api.github.com/users/thorsten7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorsten7/subscriptions","organizations_url":"https://api.github.com/users/thorsten7/orgs","repos_url":"https://api.github.com/users/thorsten7/repos","events_url":"https://api.github.com/users/thorsten7/events{/privacy}","received_events_url":"https://api.github.com/users/thorsten7/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/support","name":"support","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-06T09:54:59Z","updated_at":"2015-03-06T14:39:34Z","closed_at":"2015-03-06T14:39:34Z","body":"Hi,\r\n\r\nI added a primary Key to my class. I use createAllFromJson. The expected result is a PrimaryKeyException while updating through createAllFromJson. I tried a while but did not find a working solution with createAllFromJson. Is there a best practice for \"createOrUpdateAllFromJson\"?\r\n\r\nThank you in advance,\r\nThorsten"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/77568472","html_url":"https://github.com/realm/realm-java/issues/930#issuecomment-77568472","issue_url":"https://api.github.com/repos/realm/realm-java/issues/930","id":77568472,"user":{"login":"thorsten7","id":11347941,"avatar_url":"https://avatars.githubusercontent.com/u/11347941?v=3","gravatar_id":"","url":"https://api.github.com/users/thorsten7","html_url":"https://github.com/thorsten7","followers_url":"https://api.github.com/users/thorsten7/followers","following_url":"https://api.github.com/users/thorsten7/following{/other_user}","gists_url":"https://api.github.com/users/thorsten7/gists{/gist_id}","starred_url":"https://api.github.com/users/thorsten7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorsten7/subscriptions","organizations_url":"https://api.github.com/users/thorsten7/orgs","repos_url":"https://api.github.com/users/thorsten7/repos","events_url":"https://api.github.com/users/thorsten7/events{/privacy}","received_events_url":"https://api.github.com/users/thorsten7/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T14:39:34Z","updated_at":"2015-03-06T14:39:34Z","body":"Okay thank you for your help. My problem is that I was blind while requesting createOrUpdateAllFromJson and not recognizing that there already is one. Sorry it's Friday ;-)"}}