spring-data-dynamodb
spring-data-dynamodb copied to clipboard
Implement OR Queries
My entity contains a field of type Set<String> countries
(stringSet). I want to query against it with two country (query value, default value).
Expected Behavior
Iterable<ProductEntity> findAllByCountriesContainsOrCountriesContains(Set<String> a, Set<String> b);
returns a list of products, that contains country a
or country b
in their countries
fields.
Actual Behavior
java.lang.UnsupportedOperationException: Or queries not supported
at org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQueryCreator.or(AbstractDynamoDBQueryCreator.java:205) ~[spring-data-dynamodb-5.2.4.jar:5.2.4]
at org.socialsignin.spring.data.dynamodb.repository.query.AbstractDynamoDBQueryCreator.or(AbstractDynamoDBQueryCreator.java:49) ~[spring-data-dynamodb-5.2.4.jar:5.2.4]
Specifications
- Spring Data DynamoDB Version: 5.2.4 (2.2)
- Spring Data Version: 2.3.1.RELEASE
- AWS SDK Version: 1.11.415
- Java Version: 11.0.2 - OpenJDK 64-Bit Server VM 11.0.2+9
- Platform Details: Mac OS X 10.15.4