src/main/java/com/loyalty/homework/db/DynamoDBOperations.java
public void createTables(boolean delete) throws Exception {
        final AmazonDynamoDB dynamodb = dbSupplier.getDynamoDB();
        final DynamoDBMapper mapper = new DynamoDBMapper(dynamodb, dbSupplier.getConfigBuilder().build());
        createTable(delete, dynamodb, mapper, Post.class);
        createTable(delete, dynamodb, mapper, Reply.class);
    }
/**
     * Create tables on dynamodb
     *
     * @param delete If table exists set this to true to delete them first
     * @throws Exception Any exception during table creation
     */
Create tables on dynamodb
@param delete If table exists set this to true to delete them first
@throws Exception Any exception during table creation
Create tables on dynamodb @param delete If table exists set this to true to delete them first @throws Exception Any exception during table creation
public void createTables(boolean delete) throws Exception {
        final AmazonDynamoDB dynamodb = dbSupplier.getDynamoDB();
        final DynamoDBMapper mapper = new DynamoDBMapper(dynamodb, dbSupplier.getConfigBuilder().build());
        createTable(delete, dynamodb, mapper, Post.class);
        createTable(delete, dynamodb, mapper, Reply.class);
    }
public void createTables ( boolean delete ) throws Exception { final AmazonDynamoDB dynamodb = dbSupplier . getDynamoDB ( ) ; final DynamoDBMapper mapper = new DynamoDBMapper ( dynamodb , dbSupplier . getConfigBuilder ( ) . build ( ) ) ; createTable ( delete , dynamodb , mapper , Post . class ) ; createTable ( delete , dynamodb , mapper , Reply . class ) ; }
Create tables on dynamodb
 @param delete If table exists set this to true to delete them first
 @throws Exception Any exception during table creation
Create tables on dynamodb @param delete If table exists set this to true to delete them first @throws Exception Any exception during table creation