michaellavelle / spring-data-dynamodb

Simplifies the development of creating an Amazon DynamoDB-based Java data access layer
https://derjust.github.io/spring-data-dynamodb/
Apache License 2.0
169 stars 284 forks source link

Querying on Complex Object Attributes #85

Closed ravichauhan03 closed 4 years ago

ravichauhan03 commented 7 years ago

Hi,

I think the query on Complex Member is not available.

For e.g.: Class SubA{ private String name; private String value; } Class A{ private List list; private Id; }

Now If i wanted to query on name field of Sub A how can I do this ?

ravichauhan03 commented 7 years ago

Also Can you please tell me if I need to query for findById(List ids) ?? what can be done ?

EvanCoh commented 7 years ago

take a look at http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBMapper.ArbitraryDataMapping.html

I think this is what you mean.

derjust commented 6 years ago

Regarding findById(List ids):

For the Spring-Data query builder to respect the list you have to use

findByIdIn(List ids) 

see also Issue #84 and this wiki.