{"action":"created","issue":{"url":"https://api.github.com/repos/socia-platform/htwplus/issues/97","labels_url":"https://api.github.com/repos/socia-platform/htwplus/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/socia-platform/htwplus/issues/97/comments","events_url":"https://api.github.com/repos/socia-platform/htwplus/issues/97/events","html_url":"https://github.com/socia-platform/htwplus/issues/97","id":65107828,"number":97,"title":"JPA persist() statt merge()","user":{"login":"TeNNoX","id":2084639,"avatar_url":"https://avatars.githubusercontent.com/u/2084639?v=3","gravatar_id":"","url":"https://api.github.com/users/TeNNoX","html_url":"https://github.com/TeNNoX","followers_url":"https://api.github.com/users/TeNNoX/followers","following_url":"https://api.github.com/users/TeNNoX/following{/other_user}","gists_url":"https://api.github.com/users/TeNNoX/gists{/gist_id}","starred_url":"https://api.github.com/users/TeNNoX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeNNoX/subscriptions","organizations_url":"https://api.github.com/users/TeNNoX/orgs","repos_url":"https://api.github.com/users/TeNNoX/repos","events_url":"https://api.github.com/users/TeNNoX/events{/privacy}","received_events_url":"https://api.github.com/users/TeNNoX/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/socia-platform/htwplus/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-29T23:39:03Z","updated_at":"2015-04-06T18:27:31Z","closed_at":null,"body":"Eigentlich sollte doch in den **update()**-Funktionen von den ganzen Models die JPA-Funktion **persist(...)** und nicht **merge(...)** verwendet werden, da merge ja ein neues Objekt erstellt.\r\n\r\nDer einzige Grund hier merge zu verwenden, wäre wenn das Objekt detached ist, und man es später noch verändern will, ohne das diese Änderungen gespeichert werden... Wofür ich jetzt keinen Grund sehe..."},"comment":{"url":"https://api.github.com/repos/socia-platform/htwplus/issues/comments/90186769","html_url":"https://github.com/socia-platform/htwplus/issues/97#issuecomment-90186769","issue_url":"https://api.github.com/repos/socia-platform/htwplus/issues/97","id":90186769,"user":{"login":"TeNNoX","id":2084639,"avatar_url":"https://avatars.githubusercontent.com/u/2084639?v=3","gravatar_id":"","url":"https://api.github.com/users/TeNNoX","html_url":"https://github.com/TeNNoX","followers_url":"https://api.github.com/users/TeNNoX/followers","following_url":"https://api.github.com/users/TeNNoX/following{/other_user}","gists_url":"https://api.github.com/users/TeNNoX/gists{/gist_id}","starred_url":"https://api.github.com/users/TeNNoX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeNNoX/subscriptions","organizations_url":"https://api.github.com/users/TeNNoX/orgs","repos_url":"https://api.github.com/users/TeNNoX/repos","events_url":"https://api.github.com/users/TeNNoX/events{/privacy}","received_events_url":"https://api.github.com/users/TeNNoX/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T18:27:31Z","updated_at":"2015-04-06T18:27:31Z","body":"Würde mir das auch die Tage mal anschauen, vielleicht hat es was gebracht, mir das ganze Zeug durchzulesen :P\r\n"}}