FAQ Database Discussion Community


Update all schemas with multitenancy architecture

java,spring,hibernate,jpa,multi-tenant
I have a Java Web project with multitenancy using Hibernate, Spring and JPA. We recently implemented the architecture multitenancy but we don't know how update all the schemas of the database. Before that, when we didn't have this architecture we set in the persistence.xml the property hibernate.hbm2ddl.auto with update, but...

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...

Multi-Tenancy with Hibernate and Spring Data JPA, how does schema approach work

hibernate,spring-mvc,spring-data-jpa,multi-tenant
i ve read the Hibernate documenation for multitenancy (HERE) several times as well as many other threads. What i have: I have a working application, which serves data (e.g. Products) via rest-service. MYSQL(5.6) -> HIBERNATE(4.3.7 FINAL) -> SPRING DATA JPA (1.7.1) -> SPRING MVC (4.1.4) -> REST (jackson -> json)...

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...

Multi-Tenant Application Insights in MS Azure

azure,multi-tenant,ms-application-insights
I am in the process of adding Microsofts Application Insights to our primary application. While this has gone smoothly, I also need to figure out a way to break down the metrics further by each client (SaaS product). Page Views, Unique Users, Visits, etc. are listed for the site total....

Microsoft Graph API Accessing basic info of a user that is outside tenancy

oauth,ms-office,ews,multi-tenant,azure-active-directory
I am developing a multi-tenant web app managing the mail, contacts and calendar of users. On the AzureAd management portal, I registered my app as multi-tenant and I manage to get OAuth tokens for both people out and inside my tenancy, replacing the tennantId by "common" when querying the Authentication...

VS 2012 express debugging another project

c#,asp.net-mvc-4,debugging,visual-studio-2012,multi-tenant
I'm using VS 2012 express to build a "multi-tenanted" website with MVC4. The website itself is all going swimmingly. In order to ensure separation of concerns, I have a plugin type of architecture, whereby I have other projects in my solution, one for each "tenant" so to speak. This means...

Referencing a value from a spring config

java,spring,multi-tenant
First a bit of setup info: I have a multi-tenant spring based application. The multi-tenant enabling library is an in-house developed tool where I work that I have to use. How it works is that there is an interceptor that sets in front of the servlet for the application. Upon...

Symfony2: Customize database connection, cache and log folders, based on incoming request

php,symfony2,multi-tenant
I am trying to build a multi-tenanted solution, using an existing codebase, but with segregated databases, cache and log files. An effective way of doing this would be to dynamically compute the following, based on an incoming requests domain name: database connection parameters cache folder log folder In Symfony1.x, I...

How do subdomains work?

c#,asp.net-mvc-4,iis,subdomain,multi-tenant
I have a set up an ASP.net MVC application in my IIS at port 80. The website resolves for any subdomain. Like dev.localhost,test.localhost etc. No I have not set up any of these sub domain on my machine. I have no host file entries except the default, and no host...

Moving an NHibernate-heavy application from single-tenancy to multi-tenancy with multiple schemas

c#,nhibernate,fluent-nhibernate,multi-tenant,fluent-nhibernate-mapping
I currently have a single-tenant application that uses fluent-nhibernate mappings to map C# objects to tables in my MySQL database. As part of an effort to bring multi-tenancy to my application, I am considering having a single schema for each tenant. That is, I will have n schemas with identical...

SOLR QueryElevationComponent for Multi-tenant Support

solr,multi-tenant
Newbie question so please be nice. :) Basically we need to implement editorial boosting for a multi-tenant SOLR environment wherein a pre-defined query from a user would always bring a certain set of documents at the top of the results. A couple of challenges we have include: Given a single...

manage containers from another container, docker

docker,multi-tenant,coreos
I need to be able to deploy a new container or manage docker containers running in CoreOS from another running docker container. docker version is 1.5.0 coreos version is 647.2.0 Right now my process for deploying a new instance of my application is using a shell script. It basically does:...

Dynamic paths for laravel 5

laravel,laravel-5,multi-tenant
While building multi-tenancy packages for Laravel 5 I had to find out how to make the paths and namespaces dynamic. This would involve: views; adding a template directory dynamically that is available in the root namespace lang; adding a language directory dynamically that is available in the root namespace routes;...

SQL, a 'multi-tenant' issue: how to separate common data from user's data?

sql,sqlite,multi-tenant
I have a SQL 'architectural' design doubt, so I ask about it here... Excuse me if it does make little sense, I'm quite new to SQL... :-( UPDATE: As I did just learn thanks to a comment, this is a "multi-tenant" issue... My app is a kind of a "contacts...