{"action":"opened","issue":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1846","repository_url":"https://api.github.com/repos/dropwizard/dropwizard","labels_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1846/labels{/name}","comments_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1846/comments","events_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1846/events","html_url":"https://github.com/dropwizard/dropwizard/issues/1846","id":192782371,"number":1846,"title":"Do you plan to support hibernate multitenancy?","user":{"login":"yateam","id":3681608,"avatar_url":"https://avatars.githubusercontent.com/u/3681608?v=3","gravatar_id":"","url":"https://api.github.com/users/yateam","html_url":"https://github.com/yateam","followers_url":"https://api.github.com/users/yateam/followers","following_url":"https://api.github.com/users/yateam/following{/other_user}","gists_url":"https://api.github.com/users/yateam/gists{/gist_id}","starred_url":"https://api.github.com/users/yateam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yateam/subscriptions","organizations_url":"https://api.github.com/users/yateam/orgs","repos_url":"https://api.github.com/users/yateam/repos","events_url":"https://api.github.com/users/yateam/events{/privacy}","received_events_url":"https://api.github.com/users/yateam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-01T08:29:34Z","updated_at":"2016-12-01T08:29:34Z","closed_at":null,"body":"Hibernate provides support for multitenant application. See [here](http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#multitenacy)\r\nI sort of implemented it in my service: I added `@MultiTenantUnitOfWork` annotation which is similar to `@UnitOfWork` except that when it opens sessions it sets a tenant id:\r\n`session = sessionFactory.withOptions().tenantIdentifier(tenantId).openSession();`\r\nIn order to make this work I had to completely rewrite dropwizard-hibernate in my application. \r\n\r\nI am interested if you planning to support hibernate multitenancy in dropwizard?"}}
{"actor":{"display_login":"yateam"}}