Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-tenant support #1

Open
kukel opened this issue Jun 27, 2017 · 1 comment
Open

Multi-tenant support #1

kukel opened this issue Jun 27, 2017 · 1 comment

Comments

@kukel
Copy link

kukel commented Jun 27, 2017

For almost all of my/our applications (SAAS/Cloud/... solutions) we have one instance of an application running for multiple customers/tenants. One colum in the relevant tables contains a key to the customer that actually owns that data (multi-tenant shared schema). Would be great if OptimusFaces (or maybe OmniPersistence?) would have explicit support for this to (besides being able to do it in custom filters).

In which way this would be fully flexible I have no real clue yet. Maybe by defining a property in a web.xml which contains a field name that if present on the entity is used in the query retrieving the value from the session as an EL expression. Or maybe adding it as an annotation on the entity. I'm explicitly not mentioning multi-tenancy in separate schema's or separate db's or...

But most of all, really, really cool work. I have something homegrown that is sort of like this but with (at most) 40% of the functionality of the OptimusFaces and 10% of the OmniPersistence that I can now start removing... Compliments upfront! Will start experimenting over the weekend.

@BalusC
Copy link
Member

BalusC commented Jun 27, 2017

Thanks for compliments :) It's not yet finished though. And then I need to test with MyFaces and EclipseLink too. Any feedback, improvements and new features is always welcome at this stage.

I'll keep this feature request in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants