DynamoDB унаследовала выборку сущностейJAVA

Программисты JAVA общаются здесь
Anonymous
DynamoDB унаследовала выборку сущностей

Сообщение Anonymous »


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

Вернуться в «JAVA»