title: Amazon DynamoDB mapping enums
body: <p>I need to map a User class for Amazon DynamoDB. One of the properties on the User object is AccountType (an enum). How do I handle this? Below is the enum and the code I have tried.</p>
  
  <pre><code>public enum AccountType {
      TYPE_A,
      TYPE_B
  }
  </code></pre>
  
  <p>-</p>
  
  <pre><code>@DynamoDBAttribute(attributeName="AccountType")   *&lt;&lt; THIS FAILS*
  public AccountType getAccountType() {
      return accountType;
  }
  </code></pre>
  
  <p>Any help would be appreciated.</p>