astetsa

Results 8 comments of astetsa

I try to use solution from issue https://github.com/derjust/spring-data-dynamodb/issues/24 without sort in pageable parameter. But I catch other exception "Sort not supported for scan expressions".

I use spring boot version '1.5.3.RELEASE'.

Unfortunately I can not use Spring 5 :(

I use gradle ``` buildscript { ext { springBootVersion = '1.5.8.RELEASE' } repositories { mavenCentral() mavenLocal() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'java' apply plugin: 'idea' apply plugin:...

I have userId as hash key and creationTimestamp as sorting key. Method works well: Page findByUserIdOrderByCreationTimestampAsc(String userId, Pageable pageable); But there are cases when same userId trys to add a...

I've solved the problem. It works with the global index. It was necessary to add annotations to the model: ```java @DynamoDBIndexHashKey(globalSecondaryIndexName = "IndexName") @DynamoDBIndexRangeKey(globalSecondaryIndexNames = {"IndexName"}) ```

I have a table with id ``` @DynamoDBHashKey(attributeName = "id") @DynamoDBAutoGeneratedKey private String id; ``` And global secondary index with projection type 'key only' ``` @DynamoDBAttribute @DynamoDBIndexHashKey(globalSecondaryIndexName = TENANT_ID_INDEX_NAME) private...

I think I know what the problem is. Let's look at the interface of `DynamoDBHashKeyExtractingEntityMetadata` and its implementation of `DynamoDBEntityMetadataSupport`. The constructor fills field `Map globalSecondaryIndexNames`. It contains models fields...