FAQ Database Discussion Community


Hibernate multi-tenancy create schema during runtime

java,spring,hibernate,multi-tenant,multi-tenancy
I am setting up multi-tenant support for a java web application using hibernate 4 and spring 4. The default schema is created and set when the application starts. This schema works fine when not trying to support multi-tenancy. What I need to do now is to create a schema for...

Rails apartment with merit gem

ruby-on-rails,multi-tenancy,merit-gem,apartment-gem
I use the reputation engine Merit and I have added apartment for multitenancy. I want to exclude the merit models and tables. the following line generates an error: config.excluded_models= {Merit::Badge} undefined method `table_name' for Merit::Badge(id, name, level, description, custom_fields) Thanks for your help....

Azure DocumentDB Multi-Tenant Architecture

azure,multi-tenant,multi-tenancy,azure-documentdb
I've been implementing DocumentDB during preview into a multi-tenent system. My plan has been to generate a new database under the DocumentDB account for each tenant that signs up. Most of this code is already in place and the testing is going extremely well. Since DocumentDB has been officially released...

How to implement customer subdomain in Spring framework

spring,saas,multi-tenancy
In many of the SaaS web applications (ex, Atlassian JIRA), a user can have dedicated subdomain. For example, if my user name is helloworld, then after I log in to the web application, I am redirected to helloworld.atlassian.net How to implement this in Spring Framework´╝č Do I have to have...

Django multi-DB multitenancy with MongoDB

python,django,database,mongodb,multi-tenancy
Is there software that provides multi-DB multi-tenant support for Django and works with MongoDB? I think I only need multi-tenancy at the database level and maybe at the schema level but not at the application level. I have a pretty complicated user model. Some users can view certain data inputted...

Spring + Tomcat multi tenancy based on Request URL

spring,apache,spring-mvc,tomcat,multi-tenancy
We have a single application which is used by multiple customers. It's every time the same app, but with a different database. Our current setup consists of: Apache 2 Web Server Tomcat 8 Spring 4.1 The Web Server routes specific URLs to Tomcat, i.e. /customer1 -> tomcat/customer1 /customer2 -> tomcat/customer2...

How to sign in the user after redirect through devise in Rails?

ruby-on-rails,authentication,devise,multi-tenancy,apartment-gem
I want to redirect a user first, and then sign the user in programmatically. I've a multi-tanancy app, and when a user tries to sign in at the root domain, my app should not only redirect the user to his sub-domain, but also sign the user in. So far, I'm...