{"action":"created","issue":{"url":"https://api.github.com/repos/KinkyDesign/JaqpotQuattro/issues/3","labels_url":"https://api.github.com/repos/KinkyDesign/JaqpotQuattro/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/KinkyDesign/JaqpotQuattro/issues/3/comments","events_url":"https://api.github.com/repos/KinkyDesign/JaqpotQuattro/issues/3/events","html_url":"https://github.com/KinkyDesign/JaqpotQuattro/issues/3","id":60045205,"number":3,"title":"Fix TaskHandler#init() - persist won't overwrite existing documents","user":{"login":"alphaville","id":125415,"avatar_url":"https://avatars.githubusercontent.com/u/125415?v=3","gravatar_id":"","url":"https://api.github.com/users/alphaville","html_url":"https://github.com/alphaville","followers_url":"https://api.github.com/users/alphaville/followers","following_url":"https://api.github.com/users/alphaville/following{/other_user}","gists_url":"https://api.github.com/users/alphaville/gists{/gist_id}","starred_url":"https://api.github.com/users/alphaville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphaville/subscriptions","organizations_url":"https://api.github.com/users/alphaville/orgs","repos_url":"https://api.github.com/users/alphaville/repos","events_url":"https://api.github.com/users/alphaville/events{/privacy}","received_events_url":"https://api.github.com/users/alphaville/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KinkyDesign/JaqpotQuattro/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"hampos","id":176635,"avatar_url":"https://avatars.githubusercontent.com/u/176635?v=3","gravatar_id":"","url":"https://api.github.com/users/hampos","html_url":"https://github.com/hampos","followers_url":"https://api.github.com/users/hampos/followers","following_url":"https://api.github.com/users/hampos/following{/other_user}","gists_url":"https://api.github.com/users/hampos/gists{/gist_id}","starred_url":"https://api.github.com/users/hampos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hampos/subscriptions","organizations_url":"https://api.github.com/users/hampos/orgs","repos_url":"https://api.github.com/users/hampos/repos","events_url":"https://api.github.com/users/hampos/events{/privacy}","received_events_url":"https://api.github.com/users/hampos/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-03-06T01:26:25Z","updated_at":"2015-06-08T14:04:26Z","closed_at":"2015-06-08T14:04:26Z","body":"We need to implement a method that overwrites an entity when it exists or creates it. There must be a counterpart of the mongodb command `.save()` java-side.\r\n\r\nCheck out http://stackoverflow.com/questions/11717660/mongodb-java-api-difference-between-com-mongodb-dbcollection-save-and-com-mon for a potential solution to this problem."},"comment":{"url":"https://api.github.com/repos/KinkyDesign/JaqpotQuattro/issues/comments/110006691","html_url":"https://github.com/KinkyDesign/JaqpotQuattro/issues/3#issuecomment-110006691","issue_url":"https://api.github.com/repos/KinkyDesign/JaqpotQuattro/issues/3","id":110006691,"user":{"login":"hampos","id":176635,"avatar_url":"https://avatars.githubusercontent.com/u/176635?v=3","gravatar_id":"","url":"https://api.github.com/users/hampos","html_url":"https://github.com/hampos","followers_url":"https://api.github.com/users/hampos/followers","following_url":"https://api.github.com/users/hampos/following{/other_user}","gists_url":"https://api.github.com/users/hampos/gists{/gist_id}","starred_url":"https://api.github.com/users/hampos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hampos/subscriptions","organizations_url":"https://api.github.com/users/hampos/orgs","repos_url":"https://api.github.com/users/hampos/repos","events_url":"https://api.github.com/users/hampos/events{/privacy}","received_events_url":"https://api.github.com/users/hampos/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T14:04:26Z","updated_at":"2015-06-08T14:04:26Z","body":"MongoDB driver v3 does not support save() functionality.\r\nI also believe this functionality is not needed. JaqpotEntityManager.persist() method will work only if the entity id is not used, similar to JPA's EntityManager.persist().\r\nIf the entity already exists, JaqpotEntityManager.merge() should be used instead."}}