Ejemplo n.º 1
0
 public void deleteItems(List<Integer> numbers, List<Product> products) {
   EntityTransaction tx = null;
   int cntr = 0;
   for (Integer anInt : numbers) {
     Product anProduct = products.get(anInt);
     this.deleteKey(anProduct.getId());
     cntr++;
   }
   System.out.println("" + cntr + " products deleted");
 }
Ejemplo n.º 2
0
 public void delete(Product product) {
   EntityTransaction tx = null;
   this.deleteKey(product.getId());
 }