Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Talk:EclipseLink/Development/Indigo/Multi-Tenancy

Revision as of 11:08, 2 March 2011 by James.sutherland.oracle.com (Talk | contribs) (New page: == Comments == * @TenantShared seems much too complicated, why would the user ever require multiple tenant ids in the same Entity? ** Would be better to support the simple case, and allow ...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Comments

  • @TenantShared seems much too complicated, why would the user ever require multiple tenant ids in the same Entity?
    • Would be better to support the simple case, and allow the user to use AdditionalCriteria if they have more complex requirements.
  • Also, why have the property specified in TenantId and have the nested Column, why not just have a fixed property name "eclipselink.tenant" and have a TenantColumn similar to DiscriminatorColumn?
  • Will need someway to know the type of the TenantId, similar to the DiscriminatorType, or just maybe have a type which is a Class.
  • Instead of changing every buildRow method to specifically include the tenant column it would be nice to have a more generic mechanism, that can be used for other purposes or more advanced tenant requirements. We could add a special mapping to the descriptor that writes to the column, or have some sort of generic ExtensionPolicy or set of policies on the descriptor that have hooks to support Tenants, SoftDeletes, Auditing, History, etc.
James.sutherland.oracle.com 15:08, 2 March 2011 (UTC)

Copyright © Eclipse Foundation, Inc. All Rights Reserved.