// create an embedded hsqldb in-memory database
Connection connection = DriverManager.getConnection("jdbc:hsqldb:mem", "sa", "");
populateEmbeddedDB(connection);
// Build an easy batch engine
EasyBatchEngine easyBatchEngine = new EasyBatchEngineBuilder()
.registerRecordReader(new JdbcRecordReader(connection, "select * from greeting"))
.registerRecordMapper(new JdbcRecordMapper<Greeting>(Greeting.class))
.registerRecordProcessor(new GreetingProcessor())
.build();
// Run easy batch engine
EasyBatchReport easyBatchReport = easyBatchEngine.call();
// Print the batch execution report
System.out.println(easyBatchReport);
}