Skip to content

DynamoDBIndexHashKey bug with TableNamePrefix #47

@291277058

Description

@291277058

Expected Behavior

set DynamoDBMapperConfig with the TableNamePrefix,the find result should come from table "TableNamePrefix+tablename"

Actual Behavior

the result come from table "tablename"

Steps to Reproduce the Problem

set DynamoDBMapperConfig
@Primary @Bean public DynamoDBMapperConfig dynamoDBMapperConfig() { return DynamoDBMapperConfig.builder() .withTableNameOverride( DynamoDBMapperConfig.TableNameOverride.withTableNamePrefix(tableNamePrefix) ).build(); }
add DynamoDBIndexHashKey
@DynamoDBIndexHashKey(globalSecondaryIndexName = "username-index")

use Repository do the find method

Specifications

  • Spring Data DynamoDB Version: 5.2.5
  • Spring Data Version:Moore-RELEASE
  • AWS SDK Version:2.7.7
  • Java Version: 8
  • Platform Details: linux

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions