Exemple #1
0
  public Product removeProduct(Product product) {
    getProducts().remove(product);
    product.setCategoryBean(null);

    return product;
  }
Exemple #2
0
  public Product addProduct(Product product) {
    getProducts().add(product);
    product.setCategoryBean(this);

    return product;
  }