You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Inject everything you want as this is created like a normal bean
@Autowired
DynamoDBTemplate dynamoDBTemplate;
@Override
public String fancyCustomMethod() {
// custom code here
DeviceValue dv = dynamoDBTemplate.load(DeviceValue.class, "42");
if (dv == null) {
return "Not found";
} else {
return dv.getTag();
}
}
}
`
However, it seems the spring container does not contain dynamoDBTemplate. So how can I use dynamoDBTemplate in my own repository?
Specifications
Spring Data DynamoDB Version: 5.0.4
Spring Data Version: 2.0.9
AWS SDK Version:
Java Version: 1.8
Platform Details: windows10
The text was updated successfully, but these errors were encountered:
I am trying to use the "Custom Repository implementations" feature. And I am following the code:
`
// Most important this class has to be named like the interface with an 'Impl' suffix
// https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.single-repository-behavior
public class DeviceValueRepositoryImpl implements DeviceValueAdditionRepository {
}
`
However, it seems the spring container does not contain dynamoDBTemplate. So how can I use dynamoDBTemplate in my own repository?
Specifications
The text was updated successfully, but these errors were encountered: