When I used enhanced client to put but it throws class cast exception.
DynamoDbTable<Tableclass> recordTable = enhanceClient.table(tableName, Tableclass.class);
Tableclass tableclass = new Tableclass();
tableclass.setid(1);
tableclass.setname("myname");
recordTable.putItem(tableclass);
It gives me error java.lang.ClassCastException: com.db.dynamo.Tableclass cannot be cast to com.db.dynamo.Tableclass