Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using dynamic dynamodb's tablename, don't use find method for GSI. #288

Open
oms1226 opened this issue Aug 28, 2020 · 1 comment
Open

using dynamic dynamodb's tablename, don't use find method for GSI. #288

oms1226 opened this issue Aug 28, 2020 · 1 comment

Comments

@oms1226
Copy link

oms1226 commented Aug 28, 2020

Expected Behavior

Actual Behavior

Steps to Reproduce the Problem

1.create aws dynamodb table with GSI
2.dynamic dynamodb's tablename setup : use DynamoDBMapper, TableNameResolver
3. In CrudRepository or PagingAndSortingRepository, create method with Field(@DynamoDBIndexHashKey, @DynamoDBIndexRangeKey)
4. If call the method, error occur below!
ex. Requested resource not found (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ResourceNotFoundException; Request ID: 9J1PFB9TFP55SI7DR90PG6JBGNVV4KQNSO5AEMVJF66Q9ASUAAJG)

Specifications

  • Spring Data DynamoDB Version: implementation 'com.github.derjust:spring-data-dynamodb:5.1.0'
  • Spring Data Version:
  • AWS SDK Version:
  • Java Version:
  • Platform Details:

All those information are logged by org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory on INFO level on startup.
Or use java -version and mvn dependency:tree | grep -E 'spring|aws' to provide those version numbers.

@xinatcg
Copy link

xinatcg commented Dec 15, 2020

ref: #263 (comment)

@EnableDynamoDBRepositories(dynamoDBMapperConfigRef = "dynamoDBMapperConfig")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants