Product prod1 = createProduct(100,"apples");
server.insert(prod1);
Product prod2 = createProduct(101, "bananas");
server.insert(prod2);
server.beginTransaction();
// effectively load these into the persistence context
server.find(Product.class, prod1.getId());
server.find(Product.class, prod2.getId());
server.delete(Product.class, Arrays.asList(prod1.getId(), prod2.getId()));