# Multi-tenancy with and custom db tables

**URL:** <https://forum.flowable.org/t/multi-tenancy-with-and-custom-db-tables/12181>\
**Category:** Flowable Engine\
**Created:** [April 7, 2025, 9:36am UTC](https://forum.flowable.org/t/multi-tenancy-with-and-custom-db-tables/12181 "2025-04-07T09:36:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![desp.kaz](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@desp.kaz](https://forum.flowable.org/u/desp.kaz)\
**Post date:** [April 7, 2025, 9:36am UTC](https://forum.flowable.org/t/multi-tenancy-with-and-custom-db-tables/12181/1 "2025-04-07T09:36:43Z")

</div>

Hello,  
I have a spring boot app that supports multitenancy (schema per tenant, same db) by using MultiSchemaMultiTenantProcessEngineConfiguration of Flowable.

I have added an additional schema manager in order to create some custom tables.  
The creation is working (I checked the db and the tables are there) but when I try to save an entity by calling my repository I am getting “Table not exists” error. I figured that it tries to use the public schema which indeed doesn’t have the new tables.

I’ve managed to implement a workaround by implementing multitenancy with the hibernate way but I was wondering if there is a way that flowable handles it like it does with its own tables.

---

<div class="post-metadata">

**Author:** ![Pavelevich](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/pavelevich/32/3654_2.png) [@Pavelevich](https://forum.flowable.org/u/Pavelevich)\
**Post date:** [April 20, 2025, 7:46pm UTC](https://forum.flowable.org/t/multi-tenancy-with-and-custom-db-tables/12181/2 "2025-04-20T19:46:48Z")

</div>

i think u need to implement a custom TransactionInterceptor that sets the correct schema before each database operation and then register this interceptor for your repository methods
