title: DynamoDb not able to save map data(java)
body: <p>I am trying to save data into the dynamoDb but that data contains some Map attributes as well.But I am getting error while saving that data. Following is my domain class which I am using for  saving data from request:</p>
  <pre><code>@DynamoDBTable(tableName = &quot;ottMiddleware_rails&quot;)
  public class RailsCmsDomain {
  
  @DynamoDBHashKey(attributeName = &quot;railId&quot;)
  private String railId;
  
  @DynamoDBTyped
  @DynamoDBAttribute(attributeName = &quot;railLogic&quot;)
  private Map&lt;String, Object&gt; railLogic;
  
  @DynamoDBAttribute(attributeName = &quot;railSourceType&quot;)
  private String railSourceType;
  
  @DynamoDBAttribute(attributeName = &quot;railTitle&quot;)
  private RailCmsTitleDomain railTitle;
  
  @DynamoDBTyped
  @DynamoDBAttribute(attributeName = &quot;restrictions&quot;)
  private Map&lt;String, Object&gt; restrictions;
  </code></pre>
  <p>I am giving the following request:</p>
  <pre><code>{
      &quot;railId&quot;: &quot;railOne&quot;,
      &quot;railLogic&quot;: {
          &quot;programType&quot;: 1,
          &quot;railSourceUrl&quot;: &quot;http://myUrl&quot;
      },
      &quot;railSourceType&quot;: &quot;myRail&quot;,
      &quot;railTitle&quot;: {
          &quot;tam&quot;: &quot;Raan Phan&quot;,
          &quot;def&quot;: &quot;சிறப்பு கட்டமைப்பு&quot;
      },
      &quot;restrictions&quot;: {
          &quot;clients&quot;: [
              &quot;abc&quot;,
              &quot;xyz&quot;
          ],
          &quot;periodStart&quot;: 1506572217
      }
  }
  </code></pre>
  <p>I am using following code to save my data into the dynamoDb</p>
  <pre><code>public Boolean saveUpdateRailsDetails(RailsCmsDomain railsDomain) {
      DynamoDBUtil dynamoDBUtil = new DynamoDBUtil();
      AmazonDynamoDB dynamoDBClient = dynamoDBUtil.getDynamoDBClient();
      DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient);
      mapper.save(railsDomain);
      return true;
  }
  </code></pre>
  <p>Please suggest how can I save map into dynamoDb. I am taking data as map because in later stages there are chances more data can be added to those attributes which are map and that data can be of any data type. I am getting following error:</p>
  <pre><code>errorMessage&quot;: &quot;not supported; requires @DynamoDBTyped or 
  @DynamoDBTypeConverted&quot;
  &quot;errorType&quot;: 
  &quot;com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMappingException&quot;
  </code></pre>