Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsMultitenancy + Tenants hierarchy
https://www.eclipse.org/forums/index.php/mv/msg/441243/989696/#msg_989696
I'm interested to use my Java+Struts+Spring+EclipseLink application with multitenancy, I did some examples to provide multitenancy and everthing was ok.
But...
I have a weird requirement that could be possible this situation:
* Tenants A,B,C with isolated data and shared schema and using single table.
* Tenant A and B can see also data from Tenant C. But Tenant C can see just its own data as multitenancy works normally.
A real example could be a company with differents deparments using my application but some departments can see other data.
For insert data I think I can manage my code with @Multitenant(MultitenantType.SINGLE_TABLE) but I dont't know if the part of filter data is possible to be managed with eclipseLink or what solution I can use.
Thank you
]]>David Cifuentes Garcia2012-12-07T10:43:33-00:00Re: Multitenancy + Tenants hierarchy
https://www.eclipse.org/forums/index.php/mv/msg/441243/990299/#msg_990299
You may be able to use the @AdditionalCriteria instead of the @Multitenant, or perform your tenant isolation in your application layer, or even on the database through views.
]]>James Sutherland2012-12-11T18:25:27-00:00Re: Multitenancy + Tenants hierarchy
https://www.eclipse.org/forums/index.php/mv/msg/441243/990796/#msg_990796
I get to manage selects in java layer but I read in official documentation that use includeCriteria=false deactivate INSERT,UPDATE and DELETE statements for multitenancy but nothing about inserts.
I'm trying but is not working. I'm doing something wrong?]]>David Cifuentes Garcia2012-12-14T10:14:57-00:00Re: Multitenancy + Tenants hierarchy
https://www.eclipse.org/forums/index.php/mv/msg/441243/991519/#msg_991519
You can override the insertQuery for any descriptor using your own SQL using a DescriptorCustomizer.]]>James Sutherland2012-12-19T16:26:43-00:00