Skip to content

Commit

Permalink
Fix does not support multi store setups.
Browse files Browse the repository at this point in the history
Closes #131
  • Loading branch information
junghoon-vans committed Jan 1, 2025
1 parent 0c12275 commit a3b5ce3
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@
*/
package io.vanslog.spring.data.meilisearch.repository.config;

import io.vanslog.spring.data.meilisearch.annotations.Document;
import io.vanslog.spring.data.meilisearch.repository.support.MeilisearchRepositoryFactoryBean;

import java.lang.annotation.Annotation;
import java.util.Collection;
import java.util.Collections;

import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource;
Expand All @@ -39,6 +44,11 @@ public String getRepositoryFactoryBeanClassName() {
return MeilisearchRepositoryFactoryBean.class.getName();
}

@Override
protected Collection<Class<? extends Annotation>> getIdentifyingAnnotations() {
return Collections.singleton(Document.class);
}

@Override
protected String getModulePrefix() {
return getModuleIdentifier();
Expand Down

0 comments on commit a3b5ce3

Please sign in to comment.