-
Notifications
You must be signed in to change notification settings - Fork 141
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
TableNameResolver does not work with @DynamoDBIndexHashKey #291
Comments
ref: #263 (comment)
|
Above workaround works for me. |
I'm trying to prefix the GSI name with env.name so that the GSI name is built dynamically, like separate names for the different environments - dev-{gsi-name}, qa-{gsi-name}. The DynamoDBMapperConfig it appears is capable only of overriding the table name (annotated by @DynamoDBTable), but the same does not work for the GSI. I've tried @EnableDynamoDBRepositories(dynamoDBMapperConfigRef = "dynamoDBMapperConfig") this but this also does not work re: overriding the GSI name. Any suggestions on how we could possibly accomplish this ? I'm using: implementation 'com.github.derjust:spring-data-dynamodb:5.1.0' |
Expected Behavior
TableNameResolver should be called for every query
Actual Behavior
TableNameResolver is not called for secondary indexes
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: