{"action":"opened","issue":{"url":"https://api.github.com/repos/grails/gorm-mongodb/issues/31","repository_url":"https://api.github.com/repos/grails/gorm-mongodb","labels_url":"https://api.github.com/repos/grails/gorm-mongodb/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/grails/gorm-mongodb/issues/31/comments","events_url":"https://api.github.com/repos/grails/gorm-mongodb/issues/31/events","html_url":"https://github.com/grails/gorm-mongodb/issues/31","id":194327174,"number":31,"title":"multi tenancy with mongodb not updating version column of domain class","user":{"login":"zohaibj","id":21582462,"avatar_url":"https://avatars.githubusercontent.com/u/21582462?v=3","gravatar_id":"","url":"https://api.github.com/users/zohaibj","html_url":"https://github.com/zohaibj","followers_url":"https://api.github.com/users/zohaibj/followers","following_url":"https://api.github.com/users/zohaibj/following{/other_user}","gists_url":"https://api.github.com/users/zohaibj/gists{/gist_id}","starred_url":"https://api.github.com/users/zohaibj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zohaibj/subscriptions","organizations_url":"https://api.github.com/users/zohaibj/orgs","repos_url":"https://api.github.com/users/zohaibj/repos","events_url":"https://api.github.com/users/zohaibj/events{/privacy}","received_events_url":"https://api.github.com/users/zohaibj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-08T12:46:09Z","updated_at":"2016-12-08T12:46:09Z","closed_at":null,"body":"Using multi tenant approach at database level. Domain classes gets saved correctly in respective tenant databases however for these domain classes version column is not saved. Which means optimistic lock exception is thrown when such an object is updated. \r\n\r\n[Sample project to reproduce scenario](https://github.com/z-j/grails-exp/tree/master/MongoMultiTenancyTest)\r\n\r\n[StackOverflow Question](http://stackoverflow.com/questions/41039397/multi-tenancy-with-mongodb-not-updating-version-column-of-domain-class)\r\n\r\nGrails Version: 3.0.1\r\nGroovy Version: 2.4.3\r\nJVM Version: 1.8.0_31\r\n'org.grails.plugins:mongodb:6.0.4'"}}
{"actor":{"display_login":"zohaibj"}}