DynamoDB унаследовала выборку сущностей ⇐ JAVA
DynamoDB унаследовала выборку сущностей
I have a class A that inherits another class, B. This is an entity that is to be stored in Dynamo DB, now the sort key for it is defined by attribute in A and primary key is in B. when I am scanning the DB by a DAO method for A it is only giving me attributes of A and not B. What is the problem and the solution?
public CompletableFuture getAllEntities(){ CompletableFuture merchantSettings = new CompletableFuture(); merchantSettingsDb.scan() .doAfterOnError(merchantSettings::completeExceptionally) .subscribe(merchantSettingsEntityPage -> merchantSettings.complete(merchantSettingsEntityPage.items())); return MdcAwareCompletableFuture.from(merchantSettings); }
Источник: https://stackoverflow.com/questions/781 ... y-fetching
I have a class A that inherits another class, B. This is an entity that is to be stored in Dynamo DB, now the sort key for it is defined by attribute in A and primary key is in B. when I am scanning the DB by a DAO method for A it is only giving me attributes of A and not B. What is the problem and the solution?
public CompletableFuture getAllEntities(){ CompletableFuture merchantSettings = new CompletableFuture(); merchantSettingsDb.scan() .doAfterOnError(merchantSettings::completeExceptionally) .subscribe(merchantSettingsEntityPage -> merchantSettings.complete(merchantSettingsEntityPage.items())); return MdcAwareCompletableFuture.from(merchantSettings); }
Источник: https://stackoverflow.com/questions/781 ... y-fetching
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Невозможно подключиться к AWS dynamodb с помощью laravel с помощью kitar/laravel-dynamodb
Anonymous » » в форуме Php - 0 Ответы
- 41 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Сохранение других сущностей внутри preUpdate прослушивателя сущностей Doctrine
Anonymous » » в форуме Php - 0 Ответы
- 40 Просмотры
-
Последнее сообщение Anonymous
-