Description
Dan Markhasin opened DATAMONGO-1863 and commented
As described in DATAMONGO-525 (https://jira.spring.io/browse/DATAMONGO-525), we are looking for a way to generate collection names dynamically to support multi-tenancy.
This can be achieved by something as simple as a prefix or by a naming strategy mechanism, simliar to FieldNamingStrategy.
For example, the most simple solution that would work (for us) is to have something like this:
@Document(prefix = "${info.service_name}")
class Dog
{
private String breed;
}
That would generate a collection called animalService_Dog (assuming the service name is animalService).
Any other solution is welcome, but I believe this is a major feature that is currently lacking which is critical for multi-tenancy support
Reference URL: https://jira.spring.io/browse/DATAMONGO-525
1 votes, 3 watchers