@Override
public void load() throws SQLException {
int objectCount= (int)this.workConf.getScaleFactor();
EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistanceUnit);
EntityManager em = emf.createEntityManager();
Test test=new BasicTest();
test.setBatchSize(10);
test.setEntityCount(objectCount);
test.buildInventory(objectCount);
while (test.getActionCount() < objectCount) {
System.out.println(test.getActionCount()+ " % "+objectCount);
test.persist(em);
}
test.clearInventory();
}