Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.69 KB

CHANELOG.md

File metadata and controls

41 lines (32 loc) · 1.69 KB

5.2.6

New Features

5.2.5

New Features

  1. Allow single object as parameter to query a set/list

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)