In Hibernate how do I provide a unique database connection per user (Multitenancy)?

Solution Verified - Updated -

Issue

  • How can I provide a unique connection login for each of our tenants. In this fashion, with the goal of only allowing each tenant to see the partition of the schema with their data.

  • How do I do multi-tenancy in Hibernate?

Environment

  • JBoss Enterprise Application Platform
    • 4
    • 5
  • Hibernate

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content