Skip to content

Multi-tenant support #1

@kukel

Description

@kukel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions