DyanmoDb is storing value 1 instead of boolean value true

That's expected, have a look at the datatypes docs for dynamodb: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBMapper.DataTypes.html

The Java type of Boolean will be stored as a number type in dynamodb, 0 or 1. Alternatively, you can use @DynamoDBNativeBooleanType to map a Java Boolean to the DynamoDB BOOL data type


DynamoDb will store the boolean value as 0 or 1 by default.

Use the following decorators to save the attribute as false or true respectively.

@DynamoDBTyped(DynamoDBAttributeType.BOOL)
@DynamoDBAttribute
private boolean notificationFlag;

Note: @DynamoDBNativeBoolean which used to do this is deprecated