From 621edf37978cd91b09d167710609434807333159 Mon Sep 17 00:00:00 2001 From: Manikanta Date: Thu, 16 Jul 2020 21:52:50 +0530 Subject: [PATCH] Overriding getIdentifyingAnnotations Faced an Issue when spring data redis and spring data dynamodb added, as its throwing with Spring Data Dynamodb does not support multi-store setups! --- .../config/DynamoDBRepositoryConfigExtension.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/socialsignin/spring/data/dynamodb/repository/config/DynamoDBRepositoryConfigExtension.java b/src/main/java/org/socialsignin/spring/data/dynamodb/repository/config/DynamoDBRepositoryConfigExtension.java index 3cce9e03..b5c237cd 100644 --- a/src/main/java/org/socialsignin/spring/data/dynamodb/repository/config/DynamoDBRepositoryConfigExtension.java +++ b/src/main/java/org/socialsignin/spring/data/dynamodb/repository/config/DynamoDBRepositoryConfigExtension.java @@ -15,6 +15,7 @@ */ package org.socialsignin.spring.data.dynamodb.repository.config; +import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; @@ -252,6 +253,11 @@ public void registerBeansForRoot(BeanDefinitionRegistry registry, protected String getBeanNameWithModulePrefix(String baseBeanName) { return String.format("%s-%s", getModulePrefix(), baseBeanName); } + + @Override + protected Collection> getIdentifyingAnnotations() { + return Arrays.asList(DynamoDBTable.class); + } @Override protected String getModulePrefix() {