Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • E eclipsefdn-api-common
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 14
    • Issues 14
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse FoundationEclipse Foundation
  • IT
  • APIs
  • eclipsefdn-api-common
  • Merge requests
  • !17

Update to support multi-tenant DB connections

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Martin Lowe requested to merge malowe/eclipsefdn-api-common:malowe/master/multi_tenant_persist into master Aug 13, 2021
  • Overview 0
  • Commits 4
  • Changes 3

Tenant connection is chosen by setting the persistence unit in the query. While something automated could be used to do reflection-based lookups, it would be unreliable. An object can belong to multiple persistence units, meaning that some sort of logic would need to be added to manage which is "best-match" and allow for overrides. Sometimes simple is best.

Logic was implemented in a way that would not impact existing default connections. This makes use of the Quarkus default label in the code, along with an available override when using only named units.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: malowe/master/multi_tenant_persist

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent