michaellavelle / spring-data-dynamodb

Simplifies the development of creating an Amazon DynamoDB-based Java data access layer
https://derjust.github.io/spring-data-dynamodb/
Apache License 2.0
169 stars 284 forks source link

Dynamically change value of DynamoDBTable #77

Closed maksimu closed 4 years ago

maksimu commented 8 years ago

I have three different environments (dev, stage, and prod) and for each environment I would like to change the value of the tableName in @DynamoDBTable.

In other words based on my profile the following need to be changed @DynamoDBTable(tableName="dynamic-value")

What would be the best approach to tackle this situation?

vkea95 commented 8 years ago

I have the same problem. And I don't think there is a solution. Please check this webpage https://github.com/michaellavelle/spring-data-dynamodb/issues/65