spring-data-mongodb @indexed doesn't work when multi-tenant collections -


the project based on spring-data-mongodb use @indexed doesn't work when use multi-tenant collections.the following code:

@document(collection = "#{ @tenantprovider.gettenant()}activity") @data public class activity {     @id     private string id;     @indexed     private string activityid; } 

if collection definition dynamic of course have make sure you're creating indexes manually there's no way determine possible collections might affected.

users go ahead , create indexes manually using indexoperations.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -