title: AWS DynamoDBMapper save method keeps throwing `DynamoDBMappingException: not supported; requires @DynamoDBTyped or @DynamoDBTypeConverted`
body: <p>I followed everything that is outlined here - <a href="https://github.com/derjust/spring-data-dynamodb/wiki/Use-Hash-Range-keys" rel="nofollow noreferrer">https://github.com/derjust/spring-data-dynamodb/wiki/Use-Hash-Range-keys</a>. But still no luck.</p>
  
  <p>I have a DynamoDB table with a hash key and a sort key.</p>
  
  <p>Here is my entity class <code>RecentlyPlayed.class</code></p>
  
  <pre><code>@DynamoDBTable(tableName="some-table")
  public class RecentlyPlayed {
  
  @Id
  private RecentlyPlayedId recentlyPlayedId;
  
  // ----- Constructor methods -----
  
  @DynamoDBHashKey(attributeName="keyA")
  // Getter and setter
  
  @DynamoDBRangeKey(attributeName="keyB")
  // Getter and setter
  
  }
  </code></pre>
  
  <p>Here is my key class <code>RecentlyPlayedId.class</code></p>
  
  <pre><code>public class RecentlyPlayedId implements Serializable {
  
      private static final long serialVersionUID = 1L;
  
      private String keyA;
  
      private String keyB;
  
      public RecentlyPlayedId(String keyA, String keyB) {
          this.keyA = keyA;
          this.keyB = keyB;
      }
  
      @DynamoDBHashKey
      // Getter and setter
  
      @DynamoDBRangeKey
      // Getter and setter
  }
  </code></pre>
  
  <p>Here is my repository interface <code>RecentlyPlayedRepository</code></p>
  
  <pre><code>@EnableScan
  public interface RecentlyPlayedRepository extends CrudRepository&lt;RecentlyPlayed, RecentlyPlayedId&gt; {
  
      List&lt;RecentlyPlayed&gt; findAllByKeyA(@Param("keyA") String keyA);
  
      // Finding the entry for keyA with highest keyB
      RecentlyPlayed findTop1ByKeyAOrderByKeyBDesc(@Param("keyA") String keyA);
  }
  </code></pre>
  
  <p>I am trying to save an object like this</p>
  
  <pre><code>RecentlyPlayed rp = new RecentlyPlayed(...);
  
  dynamoDBMapper.save(rp);    // Throws that error
  
  recentlyPlayedRepository.save(rp);  // Also throws the same error
  </code></pre>
  
  <p>I am using <code>Spring v2.0.1.RELEASE</code>. The wiki in the original docs warns about this error and describes what to do to mitigate. I did exactly what they said. But still no luck.</p>
  
  <p>The link to that wiki is here - <a href="https://github.com/derjust/spring-data-dynamodb/wiki/Use-Hash-Range-keys" rel="nofollow noreferrer">https://github.com/derjust/spring-data-dynamodb/wiki/Use-Hash-Range-keys</a></p>