All Projects → alonsegal → springboot-schema-per-tenant

alonsegal / springboot-schema-per-tenant

Licence: other
Seed for achieving multi-tenancy (single pooled schema-per-tenant) using SpringBoot and Hibernate

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to springboot-schema-per-tenant

multitenant-microservices-demo
Full Isolation in Multi-Tenant SaaS with Kubernetes + Istio
Stars: ✭ 57 (-24%)
Mutual labels:  multi-tenancy, multitenant
multitenant
Multi-Tenant Spring Boot Application with separate databases using Hibernate and H2.
Stars: ✭ 15 (-80%)
Mutual labels:  hibernate, multi-tenancy
multi-tenant
Spring boot + Hibernate + Postgresql的多租户实现Demo
Stars: ✭ 110 (+46.67%)
Mutual labels:  hibernate, multi-tenancy
springboot-crud-restful-webservices
Spring Boot, MySQL, JPA, Hibernate Restful CRUD API Tutorial
Stars: ✭ 41 (-45.33%)
Mutual labels:  hibernate
grails-audit-logging-plugin
The Grails Audit Logging Plugin
Stars: ✭ 49 (-34.67%)
Mutual labels:  hibernate
sails-hook-multitenant
A multitenant Sails.js 1.X hook for Waterline ORM.
Stars: ✭ 15 (-80%)
Mutual labels:  multitenant
eixample
Multi-Tenant .NET 6 Architecture (Angular, Vue, React)
Stars: ✭ 61 (-18.67%)
Mutual labels:  multi-tenancy
hibernate.org
Source for the hibernate.org website
Stars: ✭ 25 (-66.67%)
Mutual labels:  hibernate
Desktop-Applications-JavaFX
JavaFX Open Source Projects
Stars: ✭ 69 (-8%)
Mutual labels:  hibernate
spring-javafx-material-design-admin
Aplicação desktop para Gerenciamento de estoque e vendas com Spring Boot, JavaFX e Material Design
Stars: ✭ 56 (-25.33%)
Mutual labels:  hibernate
detectify
Detectify is a gem for multi-tenant Rack apps, to help you retrieve domain and subdomain-related data from a database.
Stars: ✭ 79 (+5.33%)
Mutual labels:  multitenant
awesome-landlord
A simple, single database multi-tenancy solution for Laravel 5.2+
Stars: ✭ 41 (-45.33%)
Mutual labels:  multi-tenancy
MongoRepository
An easy-to-configure, powerful repository for MongoDB with support for multi-tenancy
Stars: ✭ 32 (-57.33%)
Mutual labels:  multi-tenancy
spring-filter
Painless filtering library for JPA entities and MongoDB collections. Smoothly integrates with Spring APIs.
Stars: ✭ 123 (+64%)
Mutual labels:  hibernate
awesome-multitenancy
No description or website provided.
Stars: ✭ 26 (-65.33%)
Mutual labels:  multi-tenancy
hibernate
No description or website provided.
Stars: ✭ 13 (-82.67%)
Mutual labels:  hibernate
multi-tenancy-devise
mtdevise adds basecamp style user logins to your ruby on rails application.
Stars: ✭ 27 (-64%)
Mutual labels:  multi-tenancy
online-shopping
This is an online shopping project using Spring Boot,Spring web-flow, Spring Rest Services and Hibernate. In this project we also used Spring Security with java and annotation configuration
Stars: ✭ 34 (-54.67%)
Mutual labels:  hibernate
spring-boot-java-swing-reservations
The project aims to present how to connect Spring Boot 2 and Java Swing GUI widget toolkit. All application dependencies are provided by Docker Compose. There are also static code analysis tools like FindBugs and Checkstyle.
Stars: ✭ 86 (+14.67%)
Mutual labels:  hibernate
TendereteOnline
A Java EE web application of an Online Shop developed with Hibernate + Spring + Bootstrap + jQuery
Stars: ✭ 19 (-74.67%)
Mutual labels:  hibernate

springboot-schema-per-tenant

Seed project for achieving multi-tenancy (single pooled schema-per-tenant) using SpringBoot and Hibernate as proposed in this article.

This project assumes a dedicated MySql DB is reachable (can be configured in application.properties), which has a default schema named default_schema and at least one additional schema with some tenant name you choose.

The default schema has a single table called user_tenant_relation and has the following structure:

CREATE TABLE `user_tenant_relation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(45) NOT NULL,
  `tenant` varchar(45) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username_tenent_uq` (`username`,`tenant`)
);

The JWT boiler-plate code is removed from to keep it clear and as simple as possible.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].