How to configure multiple DataSources for multitenancy in Hibernate

前端 未结 4 1275
别那么骄傲
别那么骄傲 2020-12-28 11:16

I am trying to add multitenancy to a java application using the separate schema approach as outlined in this webinar

I wanted to know how would I configure multiple

4条回答
  •  庸人自扰
    2020-12-28 11:33

    If you want to do multi-tenancy by ConnectionProvider, you'll need a thread-local to provide context. See this brief run-through:

    http://literatejava.com/hibernate/multi-tenancy-architecture-with-hibernate/

提交回复
热议问题