Skip to content
John D edited this page May 25, 2020 · 5 revisions

5.2.4

Housekeeping

  1. Built against Spring Data 2.3.0, not changes needed.

Bug fixes

  1. Missing LSI Indexes Projection Settings
  2. Failed to register dynamoDBMapperRef
  3. Limit and Consistent Reads only works on GSIs

New Features

  1. Ability to apply filter expressions to a Query

With static parameters

@Query(fields = "leaveDate", limit = 1, filterExpression = "contains(#field, :value)",
			expressionMappingNames = {@ExpressionAttribute(key = "#field", value = "name")},
			expressionMappingValues = {@ExpressionAttribute(key=":value", value = "projection")})
	List<User> findByPostCode(String postCode);

With dynamic parameters from methods

	@Query(fields = "leaveDate", limit = 1, filterExpression = "contains(#field, :value)",
			expressionMappingNames = {@ExpressionAttribute(key = "#field", value = "name")},
			expressionMappingValues = {@ExpressionAttribute(key=":value", parameterName = "projection")})
	List<User> findByPostCode(@Param("postCode") String postCode, @Param("projection") String projection);
  1. Support for Nested Repositories
@EnableDynamoDBRepositories(basePackages = "org.socialsignin.spring.data.dynamodb.domain.sample", considerNestedRepositories = true)
Clone this wiki locally