SYSTEMS AND METHODS FOR MULTITENANCY DATA
First Claim
1. A multitenant system, comprising:
- a computer, including a computer readable medium and processor;
an application, executing on the computer, wherein the application includes one or more entities configured to be used by a plurality of tenants;
a data source which includes one or more tables each associated with one of the one or more entities; and
wherein for each entity, data for each of the plurality of tenants is stored in the same table and a tenant discriminator column is used to determine which data is associated with which tenant.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems and methods are provided to support multitenant data in an EclipseLink environment. EclipseLink supports shared multitenant tables using tenant discriminator columns, allowing an application to be re-used for multiple tenants and have all their data co-located. Tenants can share the same schema transparently, without affecting one another and can use non-multitenant entity types as per usual. This functionality is flexible enough to allow for its usage at an Entity Manager Factory level or with individual Entity Manager'"'"'s based on the application'"'"'s needs. Support for multitenant entities can be done though the usage of a multitenant annotation or <multitenant> xml element configured in an eclipselink-orm.xml mapping file. The multitenant annotation can be used on an entity or mapped superclass and is used in conjunction with a tenant discriminator column or <tenant-discriminator-column> xml element.
24 Citations
18 Claims
-
1. A multitenant system, comprising:
-
a computer, including a computer readable medium and processor; an application, executing on the computer, wherein the application includes one or more entities configured to be used by a plurality of tenants; a data source which includes one or more tables each associated with one of the one or more entities; and wherein for each entity, data for each of the plurality of tenants is stored in the same table and a tenant discriminator column is used to determine which data is associated with which tenant. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method of storing multitenant data in a multitenant system, comprising:
-
providing an application, executing on a computer, including a computer readable medium and processor, wherein the application includes one or more entities configured to be used by a plurality of tenants; storing a plurality of tables in a data source, wherein each of the plurality of tables is associated with one of the one or more entities; storing data for each of the plurality of tenants, for a particular entity, in a table associated with the particular entity; and determining which data is associated which tenant in the table using a tenant discriminator column. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A nontransitory computer readable storage medium including instructions stored thereon which, when executed by a computer, cause the computer to perform the steps of:
-
providing an application, executing on a computer, including a computer readable medium and processor, wherein the application includes one or more entities configured to be used by a plurality of tenants; storing a plurality of tables in a data source, wherein each of the plurality of tables is associated with one of the one or more entities; storing data for each of the plurality of tenants, for a particular entity, in a table associated with the particular entity; and determining which data is associated which tenant in the table using a tenant discriminator column. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification